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

curl-and-php

CURLOPT_POSTFIELDS

From: Amaury JOB <a.job_at_ldlc.fr>
Date: Wed, 7 Mar 2001 13:38:49 +0100

Hi!

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

_______________________________________________
Curl-and-php mailing list
Curl-and-php_at_lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/curl-and-php
Received on 2001-03-07