473,397 Members | 1,961 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

accept a download from a remote script

I am trying to fetch an xml document from a merchant, but the only url
I have is to a script that composes the document and then lets me
download it. I want to automate the process, but I have to accept the
download manually. Is there a any way of bypassing this so it downloads
automatically. I want to put it on my server, not my home machine.

Jun 5 '06 #1
3 1160

charliefortune wrote:
I am trying to fetch an xml document from a merchant, but the only url
I have is to a script that composes the document and then lets me
download it. I want to automate the process, but I have to accept the
download manually. Is there a any way of bypassing this so it downloads
automatically. I want to put it on my server, not my home machine.


I'm afraid you need to describe the process in greater details.

Jun 6 '06 #2
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/...d=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.

Jun 6 '06 #3

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/...d=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.

Jun 6 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Patrick | last post by:
I am trying to download the html page at http://www.dreamteamfc.com/dtfc04/servlet/PostPlayerList?catidx=1 Using the code public class DownloadWebPage { public static void main (String...
5
by: sc48567189 | last post by:
Hello ! I need some help here. I google after the response but with no sucess. I need to download - randon size - parts of a file, not the whole file. Says: I have the zip file test.zip, it is 10...
7
by: seberino | last post by:
How make a Python script 1. login 2. type password & 3. download file all from a **remote web site**? I'm not comfortable with *MY* software handling the password part.
0
by: tc | last post by:
I am trying to publish my VB6.0 app using the MS article "Automatically Updatng Visual Basic 6 Applications: Part I, By Scott Swigart. ...
2
by: Jobs | last post by:
Download the JAVA , .NET and SQL Server interview with answers Download the JAVA , .NET and SQL Server interview sheet and rate yourself. This will help you judge yourself are you really worth of...
1
by: a.r.austin | last post by:
Hello, I am trying to download a few files one after another from a remote server. Problem is that I don't know how to, or if I am able at all, set a time out for download. I don't want to time...
0
by: nothing1 | last post by:
My script is below. And it worked perfectly until this morning when i got up and went of to try it it didnt work anymore. The code stayed the same so im sure its not that. I think it has something to...
3
by: axelman | last post by:
Hi guys, I'm using Classic ASP, IIS6, IE 7, FF 3 I've developed a vb script to downloand files hosted in my server (zip, doc, pdf, jpg, xls, et. etc.) it's very straight forward and there's a ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.