bug-wget
[Top][All Lists]
Advanced

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

[Bug-wget] Fwd: Windows: Unusual behavior with encoded text in URL's in


From: Brent Newland
Subject: [Bug-wget] Fwd: Windows: Unusual behavior with encoded text in URL's in batch files
Date: Fri, 12 Feb 2016 21:18:25 -0700

Please disregard. It was as simple as needing to use double percentage
signs in the URL in the batch file.

---------- Forwarded message ----------
From: Brent Newland <address@hidden>
Date: Fri, Feb 12, 2016 at 9:11 PM
Subject: Windows: Unusual behavior with encoded text in URL's in batch files
To: address@hidden


Command being used: wget
https://www.googleapis.com/download/storage/v1/b/chromium-browser-snapshots/o/Win%2F369898%2Fchrome-win32.zip?alt=media
-O "%temp%\chromium.zip" --no-check-certificate

I'm using the latest wget from https://eternallybored.org/misc/wget/ 1.17.1
win32

When I type that command in the command prompt (Windows 7 64-bit SP1), I
get:

C:\Users\Brent\AppData\Local\Temp\toolkit>wget
https://www.googleapis.com/download/storage/v1/b/chromium-browser-snapsho
ts/o/Win%2F369898%2Fchrome-win32.zip?alt=media -O "%temp%\chromium.zip"
--no-check-certificate
--2016-02-12 21:07:49--
https://www.googleapis.com/download/storage/v1/b/chromium-browser-snapshots/o/Win/369898/chrome
-win32.zip?alt=media
Resolving www.googleapis.com (www.googleapis.com)... 216.58.193.106
Connecting to www.googleapis.com (www.googleapis.com)|216.58.193.106|:443...
connected.
WARNING: cannot verify www.googleapis.com's certificate, issued by
'CN=Google Internet Authority G2,O=Google Inc,C=US':
  Unable to locally verify the issuer's authority.
HTTP request sent, awaiting response... 404 Not Found
2016-02-12 21:07:49 ERROR 404: Not Found.

--2016-02-12 21:07:49--
https://www.googleapis.com/download/storage/v1/b/chromium-browser-snapshots/o/Win%2F369898%2Fch
rome-win32.zip?alt=media
Reusing existing connection to www.googleapis.com:443.
HTTP request sent, awaiting response... 200 OK
Length: 100460023 (96M) [application/x-zip-compressed]
Saving to: 'C:/Users/Brent/AppData/Local/Temp/chromium.zip'

C:/Users/Brent/AppData/Local/
100%[===================================================>]  95.81M
 4.91MB/s   in 21s

2016-02-12 21:08:10 (4.65 MB/s) -
'C:/Users/Brent/AppData/Local/Temp/chromium.zip' saved [100460023/100460023]


And when I put the same command in a batch file, I get:

C:\Users\Brent\Google Drive\docs\htdocs\toolkit\phpTron\bootstrapper>wget
https://www.googleapis.com/download/storage/v1
/b/chromium-browser-snapshots/o/WinF369898Fchrome-win32.zip?alt=media -O
"C:\Users\Brent\AppData\Local\Temp\toolkit\temp
\chromium.zip" --no-check-certificate
--2016-02-12 21:09:19--
https://www.googleapis.com/download/storage/v1/b/chromium-browser-snapshots/o/WinF369898Fchrome
-win32.zip?alt=media
Resolving www.googleapis.com (www.googleapis.com)... 216.58.216.138
Connecting to www.googleapis.com (www.googleapis.com)|216.58.216.138|:443...
connected.
WARNING: cannot verify www.googleapis.com's certificate, issued by
'CN=Google Internet Authority G2,O=Google Inc,C=US':
  Unable to locally verify the issuer's authority.
HTTP request sent, awaiting response... 404 Not Found
2016-02-12 21:09:19 ERROR 404: Not Found.



Running it manually results in it first changing the "%2F" to "/", causing
a 404, then trying the URL as I gave it. When in a batch file, it also
changes "%2F" to "/", but gives up and doesn't try the URL as I gave it.

Any advice here, or is this a bug? Seems the batch file behavior should
match the regular download behavior.


reply via email to

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