RE: Re: [PHP] curl library
| From: | jacob at keystreams dot com | Date: | Mon, 21 Oct 2002 19:33:36 +0000 |
| Subject: | RE: Re: [PHP] curl library | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-120795@lists.php.net to get a copy of this message | ||
This might be obvious but make sure you:
echo $result;
Quoting "Andres, Cyrille" <Cyrille.Andres@icn.siemens.com>:
> Thanks a lot, but it still doesn't work :((
>
> Would you have another idea ?? :)
>
> Thanx !!
>
> -----Original Message-----
> From: jacob@keystreams.com [mailto:jacob@keystreams.com]
> Sent: Monday, October 21, 2002 10:29 AM
> To: php-general@lists.php.net
> Subject: Fwd: Re: [PHP] curl library
>
>
> Oops, sorry about the blank response - hit the send button too quickly.
>
> Not sure if this is the cause of your problem but try changing
> curlOPT_RETURNTRANSFER to CURLOPT_RETURNTRANSFER and curlOPT_URL to
> CURLOPT_URL
>
> Quoting "Andres, Cyrille" <Cyrille.Andres@icn.siemens.com>:
>
> >
> > Hello everybody,
> >
> > I try to retrieve and display an 128-byte encrypted page on the internet (
> > https protocol) . For this I had to install the curl library.
> >
> > I use this code but all I have is a white page :
> >
> > $ch = curl_init();
> > $sample_URL = "https://www.example.com";
> > curl_setopt($ch, curlOPT_URL, $sample_URL);
> > curl_setopt($ch, curlOPT_RETURNTRANSFER, 1);
> > $result=curl_exec($ch);
> > curl_close($ch);
> >
> > I don't have any error, I just retrieve a white page.
> >
> > Thanx for any advice !!!
> >
> >
> >
> > Cyrille.
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
>
>
> ----- End forwarded message -----
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>