cURL / Mailing Lists / curl-library / Single Mail

curl-library

CURLOPT_POSTFIELDS

From: Amaury JOB <a.job_at_ldlc.fr>
Date: Wed, 7 Mar 2001 11:40:24 +0100

Hi!
I can connect me now on a https:// server. (with the latest version of
easyphp, with Apache 1.3.17)
But I've got a new problem.
I want to read a page (https://secured_site.com/page.cgi?p1=x&p2=y)
I can connect me and display this page, but I want to read the file with
fopen function. But I can't put
fopen("page.cgi?p1=x&p2=y", "r")
No "?" in fopen function.

How can I do that?
Can U give the syntaxe to do that?

Thanks.

$ch = curl_init();
curl_setopt($ch,CURLOPT_URL, $page.$param);
$fp = @fopen($page.$parametres, "r");
curl_setopt ($ch, CURLOPT_USERPWD, $pass);
$file = curl_setopt ($ch, CURLOPT_INFILE, $fp);
curl_exec($ch);

Amaury

 -----Message d'origine-----
De : curl-library-admin_at_lists.sourceforge.net
[mailto:curl-library-admin_at_lists.sourceforge.net] De la part deDaniel
Stenberg
Envoyé : mardi 6 mars 2001 09:31
À : libcurl Mailing list
Objet : RE: SSL CURL WINDOWS

On Tue, 6 Mar 2001, Amaury JOB wrote:

> That DLL is put in Apache/php/extensions/ directory. This DLL was
> included in phpdev package.

Oh. Then we can't know how it was made. You have to contact the persons
responsible for that "phpdev package" and ask them about the libcurl status.

> I had activated this dll in php.ini: extension=php_curl.dll I didn't
> built it myself, and I'm not sure it uses the DDL version of libcurl, no.

Then, if it turns out it doesn't use a libcurl DLL, we can't easily replace
it. In that case, you'd need a new version of php_curl.dll that is built
with
a libcurl that supports https://.

You can verify if this is the case: when you installed the php_curl.dll in
the Apache/php/extensions/ directory, did you install any other DLL that
looks like it could be the libcurl DLL? If you didn't, you can assume that
php_curl.dll is PHP+curl in a single DLL and then you need to get another
version of that with https:// support included. You'd need to contact the
people from where you got that DLL from in the first place.

> Is it possible to use libcurl.dll or I must to use curl.exe? What I have
> to do? How?

libcurl.dll has all the features you want, the question is if the PHP dll
uses the libcurl dll.

You can always use the 'curl.exe' command line tool from PHP as you would
have used any other command line tool from within PHP (don't ask me to tell
you how, since I'm not fluent in PHP). I'd suggest you take any such
questions to the curl-and-php mailing list if you need help with such.

> Yes Daniel, if I succeed to do what I want with SSL, I will publish the
> complete installation in french to help others crazy men like me. :o) At
> this moment, I will give you the URL of the web site...

That's an attitude I like!

--
  Daniel Stenberg -- curl project maintainer -- http://curl.haxx.se/
_______________________________________________
Curl-library mailing list
Curl-library_at_lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/curl-library
_______________________________________________
Curl-library mailing list
Curl-library_at_lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/curl-library
Received on 2001-03-07