Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I'm trying to automate access to a website via scraping, and I'm trying to determine what parameters are being sent to the server in a POST request. I've currently got Wireshark open, but is there a better way to do this? Will I be able to see my POST request in plaintext, since the connection is HTTPS?

share|improve this question
add comment

4 Answers 4

up vote 2 down vote accepted

If you are using Firefox als your HTTP-client there's the option to use the "Tamper Data" AddOn to investigate your HTTP POST requests (and even replay them with an editable set of data).

share|improve this answer
    
Awesome, thanks, that totally helps. –  Naftuli Tzvi Kay Apr 8 '11 at 5:58
add comment

Use Fiddler2. It acts as a proxy and will basically perform a man-in-the-middle attack to sniff HTTPS. You'll get a cert error, but that's fine.

EDIT: It also works for more than just web traffic.

share|improve this answer
add comment

The wireshark wiki has a link on how to decrypt SSL traffic with wireshark. That requires control on the certificate that the client uses, though, not sure it applies to you.

share|improve this answer
3  
It also requires the right cipher. Only SSL/TLS ciphers using RSA key exchange can be decrypted, not those using diffie-hellman. –  penguin359 Apr 8 '11 at 8:24
add comment

My favorite Firefox extension is Live HTTP Headers. You can either capture live headers as various HTTP requests are made, and open up page info and look at the headers for the current page that was loaded. In addition to showing both all request and response headers, it also show the contents of a POST body.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.