LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   wget and php urls (https://www.linuxquestions.org/questions/linux-software-2/wget-and-php-urls-759170/)

Orangutanklaus 10-02-2009 05:38 AM

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

Lordandmaker 10-02-2009 07:38 AM

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.

David the H. 10-02-2009 07:59 AM

If wget isn't working for you, you could perhaps try curl or httrack instead.

zhjim 10-02-2009 08:13 AM

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)

Orangutanklaus 10-02-2009 11:06 AM

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.


All times are GMT -5. The time now is 06:23 AM.