homepage Welcome to WebmasterWorld Guest from 54.196.57.4
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Accredited PayPal World Seller

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
curl function question
Jakotsu




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

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




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

Hi,

curl_setopt [php.net] will do it:
curl_setopt($ch, CURLOPT_REFERER, "http://example.com/");

Andrew

Jakotsu




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

Thanks! :)

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved