[prev in list] [next in list] [prev in thread] [next in thread]
List: curl-and-php
Subject: Re: HTTPS/HTTP Page getting difference
From: "David Withnall" <withnall () connexus ! net ! au>
Date: 2002-11-17 23:30:25
[Download RAW message or body]
You need to use
curl_setopt ($ch, CURLOPT_USERPWD, "User:Pass");
for https so it can log into the site.
D.
On Sun, 17 Nov 2002 13:28:10 +0200, Svetlin Staev wrote
> Hey All,
>
> I am dealing with CURL for very little time but I am really getting to like it. I use it
> to get page contents from HTTP protocols but when I try to open an HTTPs one it returns no
> data. The code I use is:
>
> $ch = curl_init();
> curl_setopt($ch, CURLOPT_URL,$which);
> curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
> $re = curl_exec ($ch);
> curl_close ($ch);
>
> The server I run this on is Apache 1.3.17 with PHP 4.2.3 (libcurl/7.10.1 OpenSSL/0.9.6
> zlib/1.1.3). Am I doing something wrong or the code for HTTPS is different?
>
> Best Regards,
>
> Svetlin Staev
> CEO & Head Developer
> Infinity Interactive
> "Create your reality with us"
> http://iinteractive.host.sk
-------------------------------------------------------
This sf.net email is sponsored by: To learn the basics of securing
your web site with SSL, click here to get a FREE TRIAL of a Thawte
Server Certificate: http://www.gothawte.com/rd524.html
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic