Re: curl can't connect to my home server

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



And FYI; the test-script i'm using is

<?php
 session_write_close();
$ch = curl_init();
#set URL and other appropriate options
curl_setopt($ch, CURLOPT_URL, "http://82.170.249.144/mediaBeez/sn.php";);
//curl_setopt($ch, CURLOPT_URL, "http://www.google.de/";);
//curl_setopt($ch, CURLOPT_HEADER, );
curl_setopt($ch, CURLOPT_PORT, 81);
#grab URL and pass it to the browser
curl_exec($ch);
$error = curl_error($ch);

#close cURL resource, and free up system resources
curl_close($ch);
echo $error;
//phpinfo();
?>

On Tue, Jan 20, 2009 at 7:35 PM, Rene Veerman <rene7705@xxxxxxxxx> wrote:

> OOPS :)
>
> As a second test, i changed the test-url to
>
> http://82.170.249.144:81/mediaBeez/sn.php<http://82.170.249.144/mediaBeez/sn.php>
>
>
> On Tue, Jan 20, 2009 at 7:33 PM, Rene Veerman <rene7705@xxxxxxxxx> wrote:
>
>> Hi,
>>
>> I've been stuck on this problem i'm having after i re-installed my linux
>> (debian) machine last month..
>>
>> I'm building a CMS with video import capabilities, but since it runs on
>> shared hosting i need to make a cURL POST call to a URL on my home machine,
>> which does video-conversion.
>>
>> This curl call has stopped working, curl_error() claiming "couldn't
>> connect to host".
>>
>> As a test, i'm simply calling up a url on my homeserver through curl.. The
>> url is http://82.170.249.144/mediaBeez/sn.php
>> The curl script is at http://veerman.ws/servagetest.php
>>
>> Any light you can shed on this is very greatly appreciated.
>> I'm kinda stuck at a huge brick wall here..
>>
>
>

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux