brilliant
brilliant

Reputation: 2863

What is a header? Especially, what are POST@GET headers?

I've been trying to find a Python code that would log in to my Yahoo account from "Google App Engine". One supporter on "StackOverflow" gave me this three-step plan:

  1. Simulate normal login and save login page that you get;
  2. Save POST&GET headers with "Wireshark";
  3. Compare login page with those headers and see what fields you need to include with your request;

The problem here is that I have never used "Wireshark" before. Plus, I don't know what the POST&GET headers are. Can You, please, explain it to me (preferably with some example). Thank You.

Upvotes: 0

Views: 523

Answers (4)

Josh K
Josh K

Reputation: 28893

You don't need Wireshark, you need Firebug.

You should read up on Firebug on their wiki page. Take note that you're looking for parameters in GET or POST requests as such.

circles http://img694.imageshack.us/img694/5273/firefoxscreensnapz002k.jpg

Upvotes: 3

Danten
Danten

Reputation: 588

For monitoring header traffic in Firefox, I recommend LiveHTTPHeaders.

Upvotes: 1

Femaref
Femaref

Reputation: 61497

You should read up about HTTP-Requests in general first: wiki

Wireshark basically captures the entire data that runs through your network adapter - including the traffic from your browser. Now, you can see what exactly the browser sends to the webpage. If you have this information, you can go ahead and replicate the requests with the libraries Google provides.

Upvotes: 2

Jonathan Mayhak
Jonathan Mayhak

Reputation: 12526

Brief answer:

HTTP/1.1 has a few commands: GET, PUT, POST, DELETE, and a few others.

HTTP GET is used to retrieve a resource. ex GET http://www.demo.com/index.html

Wireshark is used to monitor network traffic. So, you can view all the HTTP commands that your machine is doing in real time.

In Wireshark find the specific POST command for your login page. This POST command has a lot of data in it including POST variables that are passed to the server. You can look at these variables and see what's going on to try and troubleshoot your situation.

I know that was very basic and short, but I think that was enough information to point you in the right direction.

http://www.wireshark.org/ http://wiki.wireshark.org/SampleCaptures http://en.wikipedia.org/wiki/POST_(HTTP)

Good luck!

Upvotes: 3

Related Questions