Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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.

13,615 Points

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?