Re: help with a http call from the command line



Enrique A wrote:
"Ian Wilson" <scobloke2@xxxxxxxxxxxxx> wrote in message news:dr5op9$s69$1@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Enrique A wrote:

Hello,

I'm running OSR 5.0.7. and I want from the command line to run a http call and put the response in a file, Does that command that I'm looking for exists ?

Yes.


example :




{command} http://12.12.12.12/web_app/serial.asp?nSerial=12345678 > /usr2/tmp/goit
cat /usr2/tmp/goit

I use wget. I can't recall if it included in MP3. Otherwise, download it from www.sco.com skunkware.


It comes with mp3!, wget -o /usr2/tmp/gotit http:/.......

Thanks so much!




Lynx's -dump is useful if all you really want is the text or if you would like to extract the links of the page, etc. Lynx has many options and several competitors: http://aplawrence.com/Words2005/2005_03_21.html

If wget is what you want (for getting the actual page), be sure to read the man page - it has numerous options. I mostly use it for downloading big images that might fail or be interrupted; something like

nohup wget -t 0 -c http://somewhere/something_big_and_ugly.z

is often very useful.



--
Tony Lawrence
Unix/Linux/Mac OS X  resources: http://aplawrence.com
Geek Yard Sale: http://geekyardsale.com
.



Relevant Pages

  • Re: [SLE] wget confusion...
    ... > I'm a bit confused by the behavior of wget... ... I've issued the command ... (later mod time than the previous download), it will retrieve that file ...
    (SuSE)
  • Re: wget (how to use)?
    ... used this method so I am just using the command he used, ... Looks to be a 15 hour ETA download, ... sleep, then resume the wget download tomorrow. ... Continue getting a partially-downloaded file. ...
    (alt.os.linux)
  • Re: Question on download FC5_64 dvd iso image.
    ... 3,462,629,376 found identical on completion of download. ... client was wrong OR command line incorrect. ... advised that some versions of wget do not understand DVD sized images. ...
    (Fedora)
  • Re: [SLE] KGet problem
    ... On Thu, 2005-10-27 at 16:56 +0530, Shriramana Sharma wrote: ... > the download at pause and restarted my PC. ... Generally I use wget at the command line. ...
    (SuSE)
  • RE: Windows Service Pack 2 Error
    ... I installed SP3 last night with no major problems. ... download SP2 again, and it STOPPED AGAIN 3/4 of the way through! ... Open a Run command and type in: ... regsvr32 wuweb.dll ...
    (microsoft.public.windowsxp.perform_maintain)