Skip to Content.
Sympa Menu

sm-sorcery-bugs - [SM-Sorcery-Bugs] [Bug 10101] strange download url

sm-sorcery-bugs AT lists.ibiblio.org

Subject: Bugs for Sorcery are reported here

List archive

Chronological Thread  
  • From: bugzilla-daemon AT bugs.sourcemage.org
  • To: sm-sorcery-bugs AT lists.ibiblio.org
  • Subject: [SM-Sorcery-Bugs] [Bug 10101] strange download url
  • Date: 17 Nov 2005 18:24:32 -0000

http://bugs.sourcemage.org/show_bug.cgi?id=10101


acedit AT armory.com changed:

What |Removed |Added
----------------------------------------------------------------------------
Version|1.13.x |1.14.x




------- Additional Comments From acedit AT armory.com 2005-11-17 12:24 -------
>
> the parameters are saved as part of the file name
>
> the following command (with quotes)
> #wget
>
"http://www.opensync.org/attachment/wiki/download/libopensync-0.18.tar.gz?rev=&format=raw";

>
> saves the file with the correct name

Doesnt work for me, I copied the above and tried it:

$ wget "http://www.opensync.org/attachment/wiki/down
load/libopensync-0.18.tar.gz?rev=&format=raw"
--10:13:02--
http://www.opensync.org/attachment/wiki/download/libopensync-0.18.
tar.gz?rev=&format=raw
=> `libopensync-0.18.tar.gz?rev=&format=raw'
Resolving localhost... 127.0.0.1
Connecting to localhost[127.0.0.1]:3128... connected.
Proxy request sent, awaiting response... 200 OK
Length: 610,922 [application/x-tar]

100%[====================================>] 610,922 37.58K/s ETA
00:00

10:13:19 (36.86 KB/s) - `libopensync-0.18.tar.gz?rev=&format=raw' saved
[610922/
610922]

$ ls -l
afrayedknot@ghost:/tmp/stuff$ ls -l
total 604
-rw-r--r-- 1 afrayedknot afrayedknot 610922 Nov 6 15:37
libopensync-0.18.tar.g
z?rev=&format=raw

Even the equivalent with curl -O gets the file with the url parameters
included
in the name. Neither it or wget knows that the ?rev stuff isnt part of the
filename. I believe there are things that can be done with http such that the
download agent does get the right filename though, they aren't doing them
though.

I dont think theres anything wget can do about this short of assuming what the
name should be, which circumvents a number of other sanity checks for other
poorly behaved sites iirc (sourceforge).

--
Configure bugmail: http://bugs.sourcemage.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.




Archive powered by MHonArc 2.6.24.

Top of Page