Re: cvs: phpweb / downloads.php
| From: | Toni Viemero | Date: | Mon, 28 Oct 2002 17:32:08 +0000 |
| Subject: | Re: cvs: phpweb / downloads.php | ||
| References: | 1 2 3 | Groups: | php.mirrors |
| Request: | Send a blank email to php-mirrors+get-13271@lists.php.net to get a copy of this message | ||
Gabor Hojtsy wrote:
> > > Modified files:
> > > /phpweb downloads.php
> > > Log:
> > > Adding information for wget/lynx users, who report our
> > > linking methods as bogus periodically.
> >
> > Perhaps you could mention about the ampersand (&) instead of questionmark.
> > Usually putting & somewhere in commandline sends the process into
> > background. Using lynx/curl/wget/whatever you need to escape the
> > ampersand.
>
> Rasmus and others reported, that ? is the only problem in that URL.
> There were no talks about &. The shells may interpret & correctly
> in this case... You know, that & *is* really a problem, or just thinking
> it? I am a windows guy, cannot test it right here ;)
[toni@hadouken:~]$ wget http://fi.php.net/do_download.php?mr=http://fi.php.net/&df=php-4.2.3.tar.bz2
[1] 27337
"[1] 27337" indicates that it went into background as jobid 1 and process id
27337. Resulting file in my homedir is 36 bytes called
do_download.php?mr=http%3A%2F%2Ffi.php.net%2F
With content "Invalid file requested for download!".
fi.php.net access_log request:
"GET /do_download.php?mr=http://fi.php.net/ HTTP/1.0"
All this done with bash, I don't know if questionmark is the issue in other
shells/OS's, but not in newish versions of bash/Linux/FreeBSD it isn't.
[toni@hadouken:~]$ wget &
[1] 27405
[toni@hadouken:~]$ wget ?
http://?: Empty host.
--
Toni Viemerö | http://selfdestruct.net
"It's sad when someone you know becomes someone you knew."