You are here: Re: accept a download from a remote script « PHP Programming Language « IT news, forums, messages
Re: accept a download from a remote script

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.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация