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

curl-and-php

Re: Doubts with curl- https

From: haroon ahmad <haroon_at_fastcreators.com>
Date: Mon, 21 May 2007 10:18:18 +0500

Hi

I would recommend you to do some http sniffing of the site creating xml
output to see what process it follows to generate xml and if it uses any
cookies etc specially when you read the http packet check the contents send
to the URL which generates the xml output.

you can use different tools for http sniffing I personally like FireFox
addon httliveheader.

Regards,
Haroon Ahmad,
Sr. Web Developer
www.fastcreators.com

On 5/21/07, Indukala <p.indu_at_kfic-kw.com> wrote:
>
> 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 <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
>
>

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