Hi.
I've been puzzling around with a method, and can't seem to get it working.
What I want to do, is to connect to a page (secure / SSL), login to an account and then get the content of a remote file, which is automatically generated by posting a form.
Most of it works already, but when my script has posted the login (which is successfully carried out) I can't seem to get/download this file I want, from the account front page.
Problem is that the file is generated (XML) when you click on a <button>, which means I don't really know the exact location of the file.
So I've tried submitting/posting the form <button> the same way I've done it with the login, and that seems to be working, but how do I get the content of the generated XML file? Normally, I mean, a download popup would appear if you submitted/posted the <button> through a web browser, but how do I receive the content with my script and maybe place it in a variable ($XML_fileContent).
I've been intensively trying to solve this problem and get it to work for three days now, but really can't seem to figure out a solution. I thought of this forum and I hope that someone can help me out.
[Using fsockopen, no CURL]
Any suggestion? Anyone tried this before who actually made it work?