Welcome to WebmasterWorld Guest from 54.147.250.33

Forum Moderators: coopster & jatar k

curl function question

   
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!

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

5+ Year Member



Hi,

curl_setopt [php.net] will do it:

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

Andrew

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

10+ Year Member



Thanks! :)
 

Featured Threads

Hot Threads This Week

Hot Threads This Month