curl-and-php
RE: CURLOPT_POSTFIELDS
Date: Wed, 7 Mar 2001 14:44:22 +0100
Hum. Ok. Thanks for your example.
I've put file in a php variable.
But I want, for example, get title of the page. (<title>_____</title>)
According to U, I can't use fopen, so I can't use fgets...
What can I do?
Amaury
-----Message d'origine-----
De : curl-and-php-admin_at_lists.sourceforge.net
[mailto:curl-and-php-admin_at_lists.sourceforge.net] De la part deDaniel
Stenberg
Envoyé : mercredi 7 mars 2001 13:59
À : 'curl and php list'
Objet : Re: CURLOPT_POSTFIELDS
On Wed, 7 Mar 2001, Amaury JOB wrote:
> 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.
Why?
> But I can't put fopen(" page.cgi?p1=x&p2=y ", " r ")
> No " ? " in fopen function.
No, you can't do that even without the ?. fopen() is a PHP internal function
that has no connection with libcurl. You simply don't use fopen() to get
pages with curl. If you want to use fopen(), then you can't use curl.
> Can U give the syntaxe to do that?
There's a very simple example shown here:
http://curl.haxx.se/lxr/source/docs/examples/getpageinvar.php
... that returns a web page in a PHP variable. What else could you possibly
want?
-- Daniel Stenberg -- curl project maintainer -- http://curl.haxx.se/ _______________________________________________ Curl-and-php mailing list Curl-and-php_at_lists.sourceforge.net http://lists.sourceforge.net/lists/listinfo/curl-and-php _______________________________________________ Curl-and-php mailing list Curl-and-php_at_lists.sourceforge.net http://lists.sourceforge.net/lists/listinfo/curl-and-phpReceived on 2001-03-07