curl-and-php
Re: How i can use curl option instead php fputs function?
Date: Tue, 11 Mar 2003 00:11:25 +0300
Yes Daniel, i know. But really above code not sending anything. Just open
connection and get first answer (greetings). Here is all okay anyway. But,
when i try send command in xml format to server by GET or POSt method i
haven't success, because server reset connect. And my problem is finding
method sending request to server which server allow. Just analog of
function sendcommand
function sendCommand($fp, $command)
{
fputs($fp, $command); // here is my big problem :))
while(1)
{
$line = fgets($fp, 1); //* this code may easy changed and
i know how i do it this
$result .= $line; //this code may easy changed and i know
how i do it this
if(ereg("</epp>$", $result)) // this code may easy changed
and i know how i do it this
{ //
break; // this code may easy changed and i know how
i do it this
} //
}
But, i can't found it.
Azer
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Received on 2003-03-10