Posted by Chung Leong on 12/18/18 11:50
charliefortune wrote:
> > I'm afraid you need to describe the process in greater details.
>
> Well what the affiliate program provides is a url like this;
>
> http://products.affiliatewindow.com/xmlproductoutput.php?mid=1234&user=5678&password=yourpassword
>
> which attempts to start a download of the xml document that I want. But
> I have to accept this manually. I would like my script to parse the
> document automatically off their server without having to be present to
> click 'save' on the prompt box. Can I do this ? Or do I have to get
> them to provide a datafeed, like Amazon web services for example.
Are you saying that you can't fetch the contents using
file_get_contents() on the URL? Do you get a page and then the save
dialog pops up? Is there a link you have to click on in the said page?
In theory you can automate nearly any process. You just need to find
out exactly what's going on under the hood. A very useful tool for this
is Fiddler (www.fiddlertool.com). Install it, go through the download
process once, then study the log to see what the browser did.
[Back to original message]
|