Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: GET request using LWP::UserAgent returns 200 OK but Firefox 302 Found

by 7stud (Deacon)
on Mar 10, 2018 at 13:00 UTC ( [id://1210617]=note: print w/replies, xml ) Need Help??


in reply to GET request using LWP::UserAgent returns 200 OK but Firefox 302 Found

I find Wireshark pretty hard to figure out, so here's a quick way to get started:

  1. Capture > Options > WiFi, and click on the Start button in the lower right corner. Or, on the Wireshark Welcome page just double click Wifi. Loopback is for listening on localhost.
  2. In your browser, navigate to some website, like google.com
  3. You will see a massive amount of data scroll by in the Wireshark window.

To make sense of all the data:

  1. Make sure View > Colorized Packet List is checked.
  2. To display only the http lines, there is a text input right above the data window that says: Apply display filter. Type in: http. Then on the far right of the tex input click the blue arrow to apply the display filter. You can get as specific as you want with a display filter. There are also some default display filters that you can access from a drop down list by clicking the blue icon to the left of the text input.
  3. Then double click on one of the displayed http lines in the main window, and in the popup window start expanding the disclosure triangles.
  4. In the bottom pane where the hexdump is displayed, you can right click the pane and choose between hex and binary format. On the right hand side of the hexdump pane, you can see the text; periods represent non printing characters. If you hover over one of the periods, the hex/binary representation on the left side will be highlighted.
  5. To clear the display window, in the Wireshark toolbar click on the third icon from the left: a green shark fin.
  • Comment on Re: GET request using LWP::UserAgent returns 200 OK but Firefox 302 Found

Replies are listed 'Best First'.
Re^2: GET request using LWP::UserAgent returns 200 OK but Firefox 302 Found
by haukex (Archbishop) on Mar 10, 2018 at 17:35 UTC
    Then double click on one of the displayed http lines in the main window

    I also find it very useful to single-click on one of the lines, and then go to the menu Analyze -> Follow TCP Stream. (I even wrote a little tool to dump all streams from one or more .pcap files on the command line.)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1210617]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2024-04-24 00:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found