Take the 2-minute tour ×

what is default referrer URL which from are coming cURL requests in PHP?Is it customizable? For example when I make this request..

 $curl = curl_init("https://3dsecure.csas.cz/transaction");
        curl_setopt_array($curl, array(
            CURLOPT_POST => true,
            CURLOPT_POSTFIELDS => http_build_query($data),
        CURLOPT_AUTOREFERER => true,
            CURLOPT_RETURNTRANSFER => true,

…what will see the requested script this request is coming from?


share|improve this question

1 Answer 1

up vote 7 down vote accepted

Default referer is none. You can set your own via CURLOPT_REFERER option.

CURLOPT_AUTOREFERER is for redirects.

share|improve this answer
super diky :)(thanks) –  simekadam Jun 5 '11 at 19:44

Your Answer


