* Thus wrote [EMAIL PROTECTED]:
> 
> 
> Is it possible with php to submit to a remote form without the use of curl?

I'm assuming you want to POST a form verses a GET, since you can
easily do a GET form submission like:

  $fp = fopen('http://domain.com/?get=var', 'r');

in PHP5 you can accomplish this using the new zcontext parameter:

$postdata = 'foo=bar';
$contextConf = array(
  'http' => array (
    'method' => 'POST',
    'header' => "Content-Length: " . strlen($postdata) . "\r\n",
    'content' => $postdata
  ),
);

$zcontext = stream_context_create($contextConf);
$fp = fopen('http://domain.com/', 'r', $zcontext);


Curt
-- 
The above comments may offend you. flame at will.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to