GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   ARG! Need php/cURL help! (https://gfy.com/showthread.php?t=174755)

ryph 09-15-2003 11:11 AM

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

psili 09-15-2003 11:20 AM

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.


All times are GMT -7. The time now is 02:15 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123