LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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, 06: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, 08: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, 08:59 AM   #3
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian + kde 4 / 5
Posts: 6,842

Rep: Reputation: 2004Reputation: 2004Reputation: 2004Reputation: 2004Reputation: 2004Reputation: 2004Reputation: 2004Reputation: 2004Reputation: 2004Reputation: 2004Reputation: 2004
If wget isn't working for you, you could perhaps try curl or httrack instead.
 
Old 10-02-2009, 09: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, 12:06 PM   #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 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

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

All times are GMT -5. The time now is 05:33 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration