bug-wget
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-wget] Using wget command to download from dynamic urls


From: Pratap Kumar Das
Subject: [Bug-wget] Using wget command to download from dynamic urls
Date: Sun, 26 Jul 2009 05:53:54 +0530

Dear all,
I want to use two of the fantastic commands available in linux e.g. wget and
curl which help me download files with direct and straightforward links
right from the command prompt without going into any gui browser!
But unfortunately, I am not being able to download the files which would be
linked with dynamic urls (urls containing "*?*" in them which is probably
used for redirection).
The link to all the the IEEE papers also fall in this category...Eg.
http://ieeexplore.ieee.org/stamp/stamp.jsp*?*
tp=&arnumber=5173739&isnumber=5173690
Also some times some of the useful software also come in this format E.g. "
http://www.mozilla.com/products/download.html?product=firefox-3.5.1&os=win&lang=en-US
"
While using wget to download files like this I get the error...(I am
attaching the complete log...)

*Command:* address@hidden:~> wget "
http://www.mozilla.com/products/download.html?product=firefox-3.5.1&os=win&lang=en-US
"

--04:33:52-- 
http://www.mozilla.com/products/down...win&lang=en-US<http://www.mozilla.com/products/download.html?product=firefox-3.5.1&os=win&lang=en-US>
=> `download.html?product=firefox-3.5.1&os=win&lang=en-US'
Resolving iiscproxy.serc.iisc.ernet.in... aa.bb.cc.dd, aa.bb.cc.ee,
aa.bb.cc.fe, ...
Connecting to iiscproxy.serc.iisc.ernet.in|aa.bb.cc.dd|:3128... connected.
Proxy request sent, awaiting response... 302 Moved Temporarily
Location: 
http://www.mozilla.com/en-US/product...win&lang=en-US<http://www.mozilla.com/en-US/products/download.html?product=firefox-3.5.1&os=win&lang=en-US>[following]
--04:33:53-- 
http://www.mozilla.com/en-US/product...win&lang=en-US<http://www.mozilla.com/en-US/products/download.html?product=firefox-3.5.1&os=win&lang=en-US>
=> `download.html?product=firefox-3.5.1&os=win&lang=en-US'
Connecting to iiscproxy.serc.iisc.ernet.in|aa.bb.cc.dd|:3128... connected.
Proxy request sent, awaiting response... 200 OK
Length: unspecified [text/html]
download.html?product=firefox-3.5.1&os=win&lang=en-US: File name too long

Cannot write to `download.html?product=firefox-3.5.1&os=win&lang=en-US'
(File name too long).
*
Command:* address@hidden:~> wget "
http://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&arnumber=5173739&isnumber=5173690
"

--04:58:39-- 
http://ieeexplore.ieee.org/stamp/sta...number=5173690<http://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&arnumber=5173739&isnumber=5173690>
=> `stamp.jsp?tp=&arnumber=5173739&isnumber=5173690'
Resolving iiscproxy.serc.iisc.ernet.in... aa.bb.cc.dd, 10.66.70.81,
10.16.40.12, ...
Connecting to iiscproxy.serc.iisc.ernet.in|aa.bb.cc.dd|:3128... connected.
Proxy request sent, awaiting response... 302 Moved Temporarily
Location: 
http://ieeexplore.ieee.org/stamp/sta...number=5173690<http://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&arnumber=5173739&isnumber=5173690>[following]
--04:58:40-- 
http://ieeexplore.ieee.org/stamp/sta...number=5173690<http://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&arnumber=5173739&isnumber=5173690>
=> `stamp.jsp?tp=&arnumber=5173739&isnumber=5173690'
Connecting to iiscproxy.serc.iisc.ernet.in|aa.bb.cc.dd|:3128... connected.
Proxy request sent, awaiting response... 200 OK
Length: 612 [text/html]
stamp.jsp?tp=&arnumber=5173739&isnumber=5173690: File name too long

Cannot write to `stamp.jsp?tp=&arnumber=5173739&isnumber=5173690' (File name
too long).




Can anybody suggest any workaround for these type of links?

Waiting for some positive responses,
-Pratap


reply via email to

[Prev in Thread] Current Thread [Next in Thread]