Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > More E-Book Readers > iRex > iRex Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 12-21-2007, 07:35 PM   #1
ajnorth
Member
ajnorth has a complete set of Star Wars action figures.ajnorth has a complete set of Star Wars action figures.ajnorth has a complete set of Star Wars action figures.
 
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
ajnorth is offline   Reply With Quote
Old 12-22-2007, 05:59 AM   #2
gwynevans
Wizard
gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.
 
gwynevans's Avatar
 
Posts: 1,343
Karma: 1065246
Join Date: Nov 2007
Location: UK
Device: Sony 505 (retired), iPad2, iPhone 3GS & Nexus 7 3G
Do you need to quote the URL itself - alternatively, pass an explicit output filename?
gwynevans is offline   Reply With Quote
Old 12-22-2007, 07:11 AM   #3
ajnorth
Member
ajnorth has a complete set of Star Wars action figures.ajnorth has a complete set of Star Wars action figures.ajnorth has a complete set of Star Wars action figures.
 
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.
ajnorth is offline   Reply With Quote
Old 12-23-2007, 11:36 AM   #4
ajnorth
Member
ajnorth has a complete set of Star Wars action figures.ajnorth has a complete set of Star Wars action figures.ajnorth has a complete set of Star Wars action figures.
 
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.
Attached Files
File Type: bin curl.bin (112.9 KB, 198 views)
ajnorth is offline   Reply With Quote
Old 12-23-2007, 12:17 PM   #5
Adam B.
Addicted to Porting
Adam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the rough
 
Adam B.'s Avatar
 
Posts: 1,695
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.
Adam B. is offline   Reply With Quote
Old 12-24-2007, 06:56 AM   #6
ajnorth
Member
ajnorth has a complete set of Star Wars action figures.ajnorth has a complete set of Star Wars action figures.ajnorth has a complete set of Star Wars action figures.
 
Posts: 17
Karma: 280
Join Date: Dec 2007
Device: iLiad
Thanks

That would have been easier!
ajnorth is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to use wget to download an online HTML book amoroso Lounge 11 04-25-2011 06:10 AM
queries @ ROBERT N ALL asdx Astak EZReader 8 01-15-2010 06:16 PM
SQL Queries iain_benson Calibre 9 06-04-2009 07:08 PM
html tree via wget -> epub (or other format) maynard Workshop 4 05-13-2009 07:05 PM
Some queries about some REB1200's I just picked up... guyanonymous Fictionwise eBookwise 5 01-02-2008 12:24 PM


All times are GMT -4. The time now is 11:03 PM.


MobileRead.com is a privately owned, operated and funded community.