Join Joseph LeBlanc for an in-depth discussion in this video Sending different response types, part of Node.js First Look.
When you use middleware like Connect, you don't always think about the HTTP…response codes going back to the browser.…Connect will usually send back an appropriate header for you.…However, sometimes you'll need to override parts of the response.…Let's take a look at some of those situations now.…I've copied the response folder from the exercise files onto my desktop, and now…let's take a look at package.json.…Connect is listed as one of the dependencies at version 1.9.2.…So let's install it now.…Change directory to Desktop/ response/ then type in npm install.…
Once Connect is installed, let's take a look at server.js.…We're setting up the server and on every request we're sending back the message Forbidden.…Let's start this server now and take a look at Firefox, type in…node-dev server.js.…Now let's open Firefox.…Before we go to localhost at port 3000, open up Tools > Web Developer > Web Console.…The Web Console is going to show us every HTTP request that the browser makes.…
It will also show the response that comes back from the server.…
- Using the Socket.IO Node package to achieve "live" effects like Facebook notifications
- Scraping web sites using jQuery without a browser
Skill Level Beginner
Q: Does the instruction from "Selecting through browserless jQuery" work for Windows users?
A: The “Selecting through browserless jQuery” video does not work on Windows
XHTML and HTML Essential Trainingwith Bill Weinman4h 44m Beginner
1. Installing Node
2. Getting Started
Running a Node script2m 6s
4. Command Line Scripts
5. Creating Web Servers
7. WebSocket Programming
8. Connecting Beyond Node
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.