LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 10-02-2009, 05:38 AM   #1
Orangutanklaus
Member
 
Registered: May 2006
Posts: 93

Rep: Reputation: 15
Question wget and php urls


Hello!

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

Code:
http://...subversion/nodes?format=tar.gz&rev=9
I always get an error message:

Code:
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.

Regards
OK
 
Old 10-02-2009, 07:38 AM   #2
Lordandmaker
Member
 
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, 07: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, 08:13 AM   #4
zhjim
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.
like
& - 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, 11:06 AM   #5
Orangutanklaus
Member
 
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.
 
  


Reply


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:50 PM.

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