Forum Moderators: coopster

Message Too Old, No Replies

curl function question

         

Jakotsu

6:20 pm on Sep 9, 2007 (gmt 0)

10+ Year Member



Hi, I wonder if it's possible to set the referer URL when calling an external page with this function, and how.

Thanks!

Little_G

6:24 pm on Sep 9, 2007 (gmt 0)

10+ Year Member



Hi,

curl_setopt [php.net] will do it:

curl_setopt($ch, CURLOPT_REFERER, "http://example.com/");

Andrew

Jakotsu

2:27 am on Sep 10, 2007 (gmt 0)

10+ Year Member



Thanks! :)