I am starting to use cURL to send posts and URL's of various kinds. for example:
curl -A "user agent mozilla etc" -b "sessionid=18429481;" -d "username=sam&password=secret" http://www.somewhere.php
what I want to do now, to test what is actually being sent by a browser, is use curl OR PHP to receive a post and know exactly what the browser is sending besides the user-agent, cookie(s) and post parameters, so I can emulate that exactly
Currently, the receiving form is not accepting the login and I'm having difficulty seeing why.
Thanks,
Samuel