I am trying to write a PHP script that will get the source code of a page in my Amazon account. However, in order to get to this page, I have to log in. As far as I understand, I could do this by posting the correct request headers and then capturing the HTML response. It's right? If so, I would really appreciate it if someone could explain to me exactly how I would do it. If it is not, I would like to hear the right way to do it!
I used Firebug to get request and response headers. It is just a question of what to do with them now. I read elsewhere on this site that you cannot send a request using the PHP post method, and perhaps using cURL is the way to go. I really don't know anything about cURL, so the more information, the better.
Also, feel free to tell me some useful lessons on this topic.
Thank!
Max
source
share