Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 12-01-2003, 05:46 AM   #1
Registered: Sep 2003
Location: Netherlands
Distribution: Debian 3.0
Posts: 78

Rep: Reputation: 15
wget url format

I am trying to create a script for a daily cron job to download some slow loading web pages, so they will be available locally.

I've constructed the script using wget. The urls to be loaded include the & character, for passing php variables. Now wget appears to chop the url in parts at the positions of the & character. So wget tries to download multiple files, one for each variable and a main page. Off course this fails.

How can I prevent wget from doing so?

I tried replacing & with %38, its ascii code, but that didn't do the trick. Also the concerning rfc about url format doesn't state the & as an unsafe character.

Old 12-01-2003, 07:21 AM   #2
Senior Member
Registered: Oct 2002
Location: Belgium
Distribution: Debian, Free/OpenBSD
Posts: 1,123

Rep: Reputation: 47
put your url between "'s like this: wget ""
Old 12-01-2003, 08:26 AM   #3
Senior Member
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
Or you can escape them with the backslash character.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
wget fails when i want to download from a URL which contains "=" or "&' noware Linux - General 7 11-13-2005 07:35 AM
ERROR The requested URL could not be retrieved While trying to retrieve the URL: /re Niceman2005 Linux - General 1 06-29-2005 09:51 AM
wget missing url ergo_sum Linux - Newbie 2 06-07-2005 07:35 PM
wget...url-encoded filenames linen0ise Slackware 1 10-26-2003 08:22 AM
Format Problems Saving Star Office Docs in Word Format kkempter Linux - Software 4 08-27-2003 04:23 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:37 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration