Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to see what the browser sends

Tags:

browser

http

php

I need to see exactly what the browser sends to a form, for debugging purposes. I have the "tamper data" addon for Mozilla, but it doesn't show me what I am looking for. What I need is a text file with all that the browser sends, it should look like this:

Content-Type: multipart/form-data; boundary=AaB03x

   --AaB03x
   Content-Disposition: form-data; name="submit-name"

   Larry
   --AaB03x
   Content-Disposition: form-data; name="files"
   Content-Type: multipart/mixed; boundary=BbC04y

   --BbC04y
   Content-Disposition: file; filename="file1.txt"
   Content-Type: text/plain
like image 893
BlogueroConnor Avatar asked Sep 30 '10 04:09

BlogueroConnor


People also ask

How do I see sent requests from my browser?

To view the request or response HTTP headers in Google Chrome, take the following steps : In Chrome, visit a URL, right click , select Inspect to open the developer tools. Select Network tab. Reload the page, select any HTTP request on the left panel, and the HTTP headers will be displayed on the right panel.

Which provides header information from browser side?

Which among the options provided header information information which comes from browser browser side? Explanation: HTTP headers let the server and the client send supplemental information alongside an HTTP response or request.

What kind of machine is listening for a URL request?

What machine listens for HTTP requests to come in to a website's domain? A server, What is the path of the URL www.twitter.com/codehs?


3 Answers

For more detailed information you could use WireShark. This program allows you monitor just about all traffic. It has a rather steep learning curve, when you get it, it is an awesome help.

Mostly I use Firebug. Setting the Console to 'persist' allows you to check GET/POST when submitting your form.

like image 97
Michael Avatar answered Nov 12 '22 02:11

Michael


The Firebug addon for Firefox can capture the data that you want. You will need to manually compile the data captured into the format that you want though.

like image 43
D0cNet Avatar answered Nov 12 '22 02:11

D0cNet


The best tool that I've used for the job is Fiddler. It lets you see the content of all the HTTP requests to and from your machine. One gotcha on Firefox though - make sure you restart once Fiddler is installed, and then go to the "Fiddler: Disabled" button in your status bar and select an option so that your Firefox traffic is watched as well.

like image 34
derekerdmann Avatar answered Nov 12 '22 04:11

derekerdmann