cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Doubts with curl- https

From: Indukala <p.indu_at_kfic-kw.com>
Date: Mon, 21 May 2007 08:15:30 +0300

Hi,

 

I use curl to fetch an XML from a very secure network. The code I use is

<?php

$ch = curl_init();

$str= "http://php.net";

curl_setopt($ch, CURLOPT_URL, $str);

$test = curl_exec($ch);

echo $test;

curl_close($ch);

?>

 

This works perfectly fine and when I change the $str to the secure URl
nothing comes. What should be the reason?

<?php

$ch = curl_init();

$str= "https://xyz.com?xml=loginxml";

curl_setopt($ch, CURLOPT_URL, $str);

$test = curl_exec($ch);

echo $test;

curl_close($ch);

?>

 

 

The machine were I run this and also the requesting URL have firewalls.
Does curl require any open port to perform this?

 

I'm stuck up with these issues for a long time. Pls help

 

 

 

Best Regards,

Indukala.P

Senior Programmer, Web Development

 

_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2007-05-21