[Solved] Goutte won’t load an ASP SSL page

I discovered that my browser and wget both add a non-empty user agent field in the header, so I am assuming Goutte sets nothing here. Adding this header to the browser object prior to the fetch fixes the problem: // Load a crawler/browser system require_once ‘vendor/goutte/goutte.phar’; // Here’s a demo of a page we want … Read more

[Solved] How to use php_CURL to acess a website [closed]

function get_web_page( $url ) { $options = array( CURLOPT_RETURNTRANSFER => true, CURLOPT_HEADER => false, CURLOPT_FOLLOWLOCATION => true, ); $ch = curl_init( $url ); curl_setopt_array( $ch, $options ); $content = curl_exec( $ch ); curl_close( $ch ); return $content; } echo get_web_page(“http://www.emirates.com/account/english/miles-calculator/miles-calculator.aspx?org=BOM&dest=JFK&trvc=0&h=7b1dc440b5eecbda143bd8e7b9ef53a27e364b”); 1 solved How to use php_CURL to acess a website [closed]