Download your favorite Linux distribution at LQ ISO.
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 10-02-2009, 06:38 AM   #1
Registered: May 2006
Posts: 93

Rep: Reputation: 15
Question wget and php urls


I'm currently trying to download a file from an url which ends like the following:

I always get an error message:

HTTP request sent, waiting for answer... 200 OK
Length: 184.902 (181K) [application/octet-stream]
nodes?format=tar.gz: Permission denied

Can't write to nodes?format=tar.gz(Permission denied).
It seems that wget recognizes the last part as the download target, does it?

How can I provoke wget to a correct parsing of this type of url? Quotes arround the url doesn't solve the problem.

Old 10-02-2009, 08:38 AM   #2
Registered: Sep 2005
Location: London, UK
Distribution: Debian
Posts: 258

Rep: Reputation: 39
I'd suspect it's wget not commenting out & in the filename when it tries to write. I'd try using the --output-document=FILE argument to wget to eliminate that.
Old 10-02-2009, 08:59 AM   #3
David the H.
Bash Guru
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
If wget isn't working for you, you could perhaps try curl or httrack instead.
Old 10-02-2009, 09:13 AM   #4
Senior Member
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
Just put the link inside quotations either with ' or with ".
Several links on the internet have some meaning on the shell.
& - put programm into background (default value for get options inside php)
# - start of comment ( used within in anchors
? - single char globbing file (also used for get options)
Old 10-02-2009, 12:06 PM   #5
Registered: May 2006
Posts: 93

Original Poster
Rep: Reputation: 15
I've to correct the error message because I tried to download the file into a folder without write permissions. *omg*

Thx for your replies and blemish over me.


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 failing to download some URLs moob8 Linux - General 7 07-20-2011 07:50 AM
Using wget or curl command to download from dynamic urls pratap.iisc Linux - Desktop 2 07-26-2009 11:55 PM
apache auto-appending .php to urls jkarp2112 Linux - Newbie 3 06-28-2008 01:19 AM
php not taking arguments when passed through URLs BrianK Linux - Software 2 03-29-2004 12:38 PM
PHP -> parsing urls DJFau Programming 14 08-07-2001 02:33 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:14 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
Open Source Consulting | Domain Registration