[PHP] Re: curl can't connect to my home server
OOPS :) As a second test, i changed the test-url to http://82.170.249.144:81/mediaBeez/sn.phphttp://82.170.249.144/mediaBeez/sn.php On Tue, Jan 20, 2009 at 7:33 PM, Rene Veerman rene7...@gmail.com 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..
[PHP] Re: curl can't connect to my home server
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 rene7...@gmail.com wrote: OOPS :) As a second test, i changed the test-url to http://82.170.249.144:81/mediaBeez/sn.phphttp://82.170.249.144/mediaBeez/sn.php On Tue, Jan 20, 2009 at 7:33 PM, Rene Veerman rene7...@gmail.com 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..
Re: [PHP] Re: curl can't connect to my home server
On Tue, Jan 20, 2009 at 1:35 PM, Rene Veerman rene7...@gmail.com wrote: OOPS :) As a second test, i changed the test-url to http://82.170.249.144:81/mediaBeez/sn.phphttp://82.170.249.144/mediaBeez/sn.php On Tue, Jan 20, 2009 at 7:33 PM, Rene Veerman rene7...@gmail.com 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.. $ curl -I http://82.170.249.144:81/mediaBeez/sn.php HTTP/1.1 200 OK Date: Tue, 20 Jan 2009 19:40:01 GMT Server: Apache X-Powered-By: PHP/5.2.0-8+etch13 Set-Cookie: PHPSESSID=b797765b2b77ffe1d51099e11ca680d8; path=/ Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma: no-cache Content-Type: text/html; charset=UTF-8 Looks like that works. But it's setting a session. Unless you're using cookie jars maybe that could be part of your problem. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php