Question

I'm scraping an Amazon form and submitting it. When I submit the form via my code, it bounces me back to that same form with no errors but clearly something is going wrong. My hunch it's either an SSL thing or no session_id.

Regardless, I'd like to inspect the POST request to see what it looks like and compare it to what Charles returned when I did the request via the UI in my browser.

Was it helpful?

Solution

Just proxy the request through Charles:

agent.set_proxy 'localhost', 8888

You'll probably also need to:

agent.verify_mode = OpenSSL::SSL::VERIFY_NONE
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top