A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: curl_exec and DIE PLEASE

  1. #1
    Senior Member joshstrike's Avatar
    Join Date
    Jan 2001
    Location
    Alhama de Granada, España
    Posts
    1,136

    curl_exec and DIE PLEASE

    This is not a multi_curl_exec question.
    I'm looking for a way to shard off a curl_exec which expects no return and then simply have my calling script die or return a value without waiting for (or reading) the response. I don't want to wait for the other server to do what it needs to do...it can call back to another script when it's ready. I just want to start an apache process over on the other server, and nothing else, without waiting for the response.

    Is that possible with cURL? Am I better off using do_post_request? Doesn't that wait for the answer too, if the script it's calling takes a long time to run?

    //edit...sorry. By do_post_request I'm talking about a remote fopen() which obviously has some problems...like most servers I'm going to run this code on won't support it.
    Last edited by joshstrike; 10-15-2010 at 03:58 PM. Reason: {G}
    The Strike Agency
    http://www.theStrikeAgency.com

    StrikeSapphire -- The Original Bitcoin Casino
    https://strikesapphire.com
    (not available in the US)

  2. #2
    Senior Member joshstrike's Avatar
    Join Date
    Jan 2001
    Location
    Alhama de Granada, España
    Posts
    1,136
    Never mind. Solved it, I think. A combination of a short CURLOPT_TIMEOUT and a CURLOPT_MUTE seems to do the trick. Although it would be nice to have a "legitimate" way not to expect a result.
    The Strike Agency
    http://www.theStrikeAgency.com

    StrikeSapphire -- The Original Bitcoin Casino
    https://strikesapphire.com
    (not available in the US)

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center