ARG! Need php/cURL help!

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ryph
    Confirmed User
    • Oct 2002
    • 1225

    #1

    ARG! Need php/cURL help!

    I have a script thats sending data using cURL. After I set all the options and call curl_exec(), I try calling header("Location: thanks.htm") right afterwards which doesnt seem to work.
    But if I just comment out the curl_exec() statement, it redirects perfectly fine, but then my script never sends the data!
    Any php gurus got any insight? Please! lol
    tom at ryphs dot com
  • psili
    Confirmed User
    • Apr 2003
    • 5526

    #2
    Only thing i can think of is cURL's sending http headers - and since the headers are sent already, you can't send any more (the header redirect). that's just a guess though.

    could you write out to the browser a js location.redirect after the curl code executes ?

    dunno though. haven't played too much with curl. sorry.
    Your post count means nothing.

    Comment

    Working...