Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript Build a Simple Dynamic Site with Node.js HTTP Methods and Headers Dealing with the POST Body

Are there other differences between GET and POST?

In this video Chalkers says the main difference between the two methods is that GET remains in the browser while POST stays hidden. Are there other differences?

1 Answer

The data sent with POST is stored in the request body, which is a way more secure while GET request include all requested data in the URL, which is not really secure.

I thought POST method is used when the user is posting data to the server, like making a change i.e. "write" access. And the GET method is when the user is retrieving information only, i.e. "read-only" access. Is that not correct?