[Pro] PHP, cURL and Cookies

What happens if you try to curl a different page using this same script? Does it work on “normal” non-cookies pages? What about redirects?

Walter

On Jul 9, 2015, at 7:50 PM, JDW email@hidden wrote:

Hi Walter,

Moving those 2 lines of code to the top would yield this script:

<?php
>    ini_set('display_errors', true);
>    error_reporting(E_ALL);
>    $curl = curl_init();
>    curl_setopt ($curl, CURLOPT_URL, "http://hartford.macusa.net/fmi/iwp/cgi?-db=Install_Info.fp7&-startsession");
>    curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
>    $result = curl_exec ($curl);
>    curl_close ($curl);
>    print $result; 
> ?>

I still get a blank page.

The script can be executed from off my server via the following URL:

Error 404: Not Found

Note that I also have the following lines within my .htaccess file on the server:

php_flag display_errors 1
> php_value error_reporting 30719

Best,

James W.


dynamo mailing list
email@hidden
Update your subscriptions at:
Information for existing FreewayTalk / Groups.io users - Site Feedback - Softpress Talk


dynamo mailing list
email@hidden
Update your subscriptions at:
https://freewaytalk.softpress.com/person/options