PC Review


Reply
Thread Tools Rate Thread

Download URL File

 
 
Bassam Abdul-Baki
Guest
Posts: n/a
 
      15th Oct 2004
Greetings,

Is there a DOS command that will allow users to download a file from an HTTP
URL? Thanks.

Bassam


 
Reply With Quote
 
 
 
 
Marty List
Guest
Posts: n/a
 
      15th Oct 2004

"Bassam Abdul-Baki" <(E-Mail Removed)> wrote in message
news:O%23hiR$(E-Mail Removed)...
> Greetings,
>
> Is there a DOS command that will allow users to download a file from an

HTTP
> URL? Thanks.
>
> Bassam
>



Just yesterday I posted this. You could try the freeware tool WGET.EXE:
http://www.gnu.org/software/wget/wget.html

If you're using Windows XP you can use BITSADMIN.EXE from the Support Tools.



 
Reply With Quote
 
Torgeir Bakken \(MVP\)
Guest
Posts: n/a
 
      15th Oct 2004
Bassam Abdul-Baki wrote:

> Greetings,
>
> Is there a DOS command that will allow users to download a
> file from an HTTP URL? Thanks.
>
> Bassam

Hi

Maybe one of this ones will work for you:

curl
http://curl.haxx.se/

wget
http://wget.sunsite.dk/


--
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/scr...r/default.mspx
 
Reply With Quote
 
Bassam Abdul-Baki
Guest
Posts: n/a
 
      16th Oct 2004
Hi Marty,

I tried WGET and it didn't do what I wanted. Considering that I only played
with it for a few hours, I may have missed something. My dilemma is this.
We're getting the weather news as an XML feed from an outside site by
calling loadXML in a javascript function (hundreds of users on an intranet
getting the weather from the internet). All of a sudden, the weather site
went down and slowed down our intranet page immensely. Our solution to this
was to get the XML feed separately, and copy it to a local server (cached).
This way, users will load the local copy and the server will always check
for a newer version. If no new version exists or the server's slow or down,
users won't feel it. However, when I used WGET (after getting rid of those
filename.1, .2, .3 extras), the file kept getting replaced with an empty
HTML file that had a META tag REDIRECT link of zero seconds to that weather
page. So the cached copy would just keep trying to get the newer version
over and over. I didn't think it was WGET that was doing that, but clicking
on the link would not bring it up in the browser, instead I would get an
unknown error. I tried creating a link to the XML feed and see what happens
if I download it manually, I got a could not download error from IE that
usually appears whenever the file doesn't exist or the URL is broken.

Any suggestions on how to implement a cached copy of a file using WGET?

Thanks.

Bassam


"Marty List" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>
> "Bassam Abdul-Baki" <(E-Mail Removed)> wrote in message
> news:O%23hiR$(E-Mail Removed)...
>> Greetings,
>>
>> Is there a DOS command that will allow users to download a file from an

> HTTP
>> URL? Thanks.
>>
>> Bassam
>>

>
>
> Just yesterday I posted this. You could try the freeware tool WGET.EXE:
> http://www.gnu.org/software/wget/wget.html
>
> If you're using Windows XP you can use BITSADMIN.EXE from the Support
> Tools.
>
>
>



 
Reply With Quote
 
Bassam Abdul-Baki
Guest
Posts: n/a
 
      16th Oct 2004
Hi Torgeir,

Please take a look at my response to Clay. I've used WGET before, but not
CURL. WGET wouldn't work for me, so I'll try CURL instead. Thanks.

Bassam

"Torgeir Bakken (MVP)" <Torgeir.Bakken-(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> Bassam Abdul-Baki wrote:
>
>> Greetings,
>>
>> Is there a DOS command that will allow users to download a
>> file from an HTTP URL? Thanks.
>>
>> Bassam

> Hi
>
> Maybe one of this ones will work for you:
>
> curl
> http://curl.haxx.se/
>
> wget
> http://wget.sunsite.dk/
>
>
> --
> torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
> Administration scripting examples and an ONLINE version of
> the 1328 page Scripting Guide:
> http://www.microsoft.com/technet/scr...r/default.mspx



 
Reply With Quote
 
Marty List
Guest
Posts: n/a
 
      16th Oct 2004

"Bassam Abdul-Baki" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi Marty,
>
> I tried WGET and it didn't do what I wanted. Considering that I only

played
> with it for a few hours, I may have missed something. My dilemma is this.
> We're getting the weather news as an XML feed from an outside site by
> calling loadXML in a javascript function (hundreds of users on an intranet
> getting the weather from the internet). All of a sudden, the weather site
> went down and slowed down our intranet page immensely. Our solution to

this
> was to get the XML feed separately, and copy it to a local server

(cached).
> This way, users will load the local copy and the server will always check
> for a newer version. If no new version exists or the server's slow or

down,
> users won't feel it. However, when I used WGET (after getting rid of

those
> filename.1, .2, .3 extras), the file kept getting replaced with an empty
> HTML file that had a META tag REDIRECT link of zero seconds to that

weather
> page. So the cached copy would just keep trying to get the newer version
> over and over. I didn't think it was WGET that was doing that, but

clicking
> on the link would not bring it up in the browser, instead I would get an
> unknown error. I tried creating a link to the XML feed and see what

happens
> if I download it manually, I got a could not download error from IE that
> usually appears whenever the file doesn't exist or the URL is broken.
>
> Any suggestions on how to implement a cached copy of a file using WGET?
>
> Thanks.
>
> Bassam
>
>
> "Marty List" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> >
> > "Bassam Abdul-Baki" <(E-Mail Removed)> wrote in message
> > news:O%23hiR$(E-Mail Removed)...
> >> Greetings,
> >>
> >> Is there a DOS command that will allow users to download a file from an

> > HTTP
> >> URL? Thanks.
> >>
> >> Bassam
> >>

> >
> >
> > Just yesterday I posted this. You could try the freeware tool WGET.EXE:
> > http://www.gnu.org/software/wget/wget.html
> >
> > If you're using Windows XP you can use BITSADMIN.EXE from the Support
> > Tools.
> >



I've never had any problems with WGET, and I can't think of anything special
you would need to do for XML files.

Post the command line you are passing to WGET.



 
Reply With Quote
 
Bassam Abdul-Baki
Guest
Posts: n/a
 
      16th Oct 2004
I was using "wget -t inf -o results.log
http://www.weatherroom.com/xml/ext/22302". The default file in this case is
22302.xml. The link works now so I can duplicate the error. I tried using
cURL based on Torgeir's suggestion (see other reply), and that worked like a
charm.

Bassam

P.S. - I like your e-mail address.

"Marty List" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>
> "Bassam Abdul-Baki" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> Hi Marty,
>>
>> I tried WGET and it didn't do what I wanted. Considering that I only

> played
>> with it for a few hours, I may have missed something. My dilemma is
>> this.
>> We're getting the weather news as an XML feed from an outside site by
>> calling loadXML in a javascript function (hundreds of users on an
>> intranet
>> getting the weather from the internet). All of a sudden, the weather
>> site
>> went down and slowed down our intranet page immensely. Our solution to

> this
>> was to get the XML feed separately, and copy it to a local server

> (cached).
>> This way, users will load the local copy and the server will always check
>> for a newer version. If no new version exists or the server's slow or

> down,
>> users won't feel it. However, when I used WGET (after getting rid of

> those
>> filename.1, .2, .3 extras), the file kept getting replaced with an empty
>> HTML file that had a META tag REDIRECT link of zero seconds to that

> weather
>> page. So the cached copy would just keep trying to get the newer version
>> over and over. I didn't think it was WGET that was doing that, but

> clicking
>> on the link would not bring it up in the browser, instead I would get an
>> unknown error. I tried creating a link to the XML feed and see what

> happens
>> if I download it manually, I got a could not download error from IE that
>> usually appears whenever the file doesn't exist or the URL is broken.
>>
>> Any suggestions on how to implement a cached copy of a file using WGET?
>>
>> Thanks.
>>
>> Bassam
>>
>>
>> "Marty List" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>> >
>> > "Bassam Abdul-Baki" <(E-Mail Removed)> wrote in message
>> > news:O%23hiR$(E-Mail Removed)...
>> >> Greetings,
>> >>
>> >> Is there a DOS command that will allow users to download a file from
>> >> an
>> > HTTP
>> >> URL? Thanks.
>> >>
>> >> Bassam
>> >>
>> >
>> >
>> > Just yesterday I posted this. You could try the freeware tool
>> > WGET.EXE:
>> > http://www.gnu.org/software/wget/wget.html
>> >
>> > If you're using Windows XP you can use BITSADMIN.EXE from the Support
>> > Tools.
>> >

>
>
> I've never had any problems with WGET, and I can't think of anything
> special
> you would need to do for XML files.
>
> Post the command line you are passing to WGET.
>
>
>



 
Reply With Quote
 
ITMan
Guest
Posts: n/a
 
      21st Oct 2004
Try dhttp @ dhttp www.cmdtools.com/dhttp.zip



"Bassam Abdul-Baki" <(E-Mail Removed)> wrote in message
news:O%23hiR$(E-Mail Removed)...
> Greetings,
>
> Is there a DOS command that will allow users to download a file from an
> HTTP URL? Thanks.
>
> Bassam
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
IE 6.0 Unable to Download files - Attempting to When you attempt to download a file from a Web site, the Copying dialog box may appear ... Internet Explorer Window Closes When You Click a Download Link . Robert Cox Windows XP Internet Explorer 6 5th Sep 2007 09:08 PM
Forcing Download of File Appends HTML from Download Page to Downloaded File? Brett Kelly Microsoft ASP .NET 1 16th Jun 2006 05:05 AM
automatic file download before the download file prompt =?Utf-8?B?Z2Jhaw==?= Windows XP Internet Explorer 0 2nd May 2006 08:44 PM
problem with code download file - two window file download Sam -- Microsoft ASP .NET 2 17th Mar 2005 04:20 PM
File upload/download from database. Download appends aspx page to end of file Ryan Taylor Microsoft ASP .NET 2 10th Nov 2004 08:31 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:07 AM.