|
![]() |
|
Thread Tools | Search this Thread |
![]() |
#1 |
Member
![]() ![]() ![]() Posts: 17
Karma: 280
Join Date: Dec 2007
Device: iLiad
|
wget doesn't work with application/x-www-form-urlencoded queries
Hi
I can't seem to use URL encoded queries with wget i.e. when I try "wget http://finance.yahoo.com/q?s=msft" I get an "Invalid argument" error. I also tried a POST using the -h headers option to pass the arguments but couldn't get that working either - not sure if all web servers accept POST as an alternative for URL encoded queries. Any advice? Thanks Angus |
![]() |
![]() |
![]() |
#2 |
Wizzard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,402
Karma: 2000000
Join Date: Nov 2007
Location: UK
Device: iPad 2, iPhone 6s, Kindle Voyage & Kindle PaperWhite
|
Do you need to quote the URL itself - alternatively, pass an explicit output filename?
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Member
![]() ![]() ![]() Posts: 17
Karma: 280
Join Date: Dec 2007
Device: iLiad
|
wget
No, tried quoting. It seems the version of wget supplied in the busybox is very limited - hardly any options and an inability to pass parameters in the URL. Can't think of a way forward here apart from compiling a new version.
|
![]() |
![]() |
![]() |
#4 |
Member
![]() ![]() ![]() Posts: 17
Karma: 280
Join Date: Dec 2007
Device: iLiad
|
Used curl instead
Instead of using wget I've compiled curl using adamb's virtual machine/VMWare image. Here's a copy of the binary for those of you that want something better than the inbuilt wget for fetching content on the iLiad.
See http://curl.haxx.se/docs/httpscripting.html for instructions. |
![]() |
![]() |
![]() |
#5 |
Addicted to Porting
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,697
Karma: 7194
Join Date: Oct 2006
Location: Indianapolis, IN
Device: iRex iLiad, Nokia 770, Samsung i760
|
If you'd still like wget, you can try the updated busybox, or the version of gnu wget in my comics downloader.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Member
![]() ![]() ![]() Posts: 17
Karma: 280
Join Date: Dec 2007
Device: iLiad
|
Thanks
That would have been easier!
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to use wget to download an online HTML book | amoroso | Lounge | 11 | 04-25-2011 05:10 AM |
queries @ ROBERT N ALL | asdx | Astak EZReader | 8 | 01-15-2010 05:16 PM |
SQL Queries | iain_benson | Calibre | 9 | 06-04-2009 06:08 PM |
html tree via wget -> epub (or other format) | maynard | Workshop | 4 | 05-13-2009 06:05 PM |
Some queries about some REB1200's I just picked up... | guyanonymous | Fictionwise eBookwise | 5 | 01-02-2008 11:24 AM |