Find the answer to your Linux question:
Results 1 to 6 of 6
is it possible to use wget command to send a http get request and not wait for the response? in regular use when i make a call with wget i ...
  1. #1
    Just Joined!
    Join Date
    Aug 2008
    Posts
    6

    using wget

    is it possible to use wget command to send a http get request and not wait for the response?

    in regular use when i make a call with wget i get a response message like 200 ok to let me know the request was successfull.

    is there any parameter i can use which will allow my wget request to just send the http get and not wait on a response?

  2. #2
    Just Joined! garyalex's Avatar
    Join Date
    Jun 2008
    Location
    Johannesburg, South Africa
    Posts
    16
    Not sure why you would want to do this... what are you trying to achieve?

  3. #3
    Just Joined!
    Join Date
    Aug 2008
    Posts
    6
    when i do a wget it creates a file with response data. id prefer not to have these files building up on the server as i need to send the request once a day.

    i just want to be able make a request to a specific URL, which will then kick off a custom job , and in the meantime let the server forget about waiting for any response

  4. #4
    Just Joined! garyalex's Avatar
    Join Date
    Jun 2008
    Location
    Johannesburg, South Africa
    Posts
    16
    You can use wget --spider $URL ... it won't download anything then.

    Does that help?

    If wget hangs on that request waiting for your remote server you can always run a kill command 5 mins later from cron...

  5. #5
    Just Joined!
    Join Date
    Aug 2008
    Posts
    6
    ya that sounds right, no download should mean no new content placed on the server, thanks!

  6. #6
    Just Joined! garyalex's Avatar
    Join Date
    Jun 2008
    Location
    Johannesburg, South Africa
    Posts
    16
    No problem, glad to help!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...