[PHP]: outbrain.com icon headers getting doesn't work using curl, but get_headers works -


i'm trying http://outbrain.com site icon (http://outbrain.com/favicon.ico) using php 5.6.9 curl curl_setopt_array data:

curlopt_httpheader => $request_headers, curlopt_encoding => '', curlopt_useragent => '<here_base_page_user_agent>', curlopt_referer => 'http://outbrain.com', curlopt_followlocation => true, curlopt_header => true, curlopt_httpget => true, curlopt_nobody => true, curlopt_returntransfer => true, curlopt_timeout => 15, curlopt_ssl_verifypeer => false, curlopt_cookiefile => '/tmp/outbrain.cookie', curlopt_encoding => '' 

but returns 403 error.

if use get_headers function referrer , user_agent parameters set in stream context - works.

help me, please, find problem reasons , solution.

what curl options can help?

thank in advance!

use urls instead:

www.outbrain.com/favicon.ico

www.outbrain.com/favicon/favicon-64x64.png

www.outbrain.com/favicon/favicon-96x96.png

www.outbrain.com/favicon/favicon-160x160.png

www.outbrain.com/favicon/favicon-192x192.png


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -