Re: HTTP: failed socket_read
hi
as i read your problem first thing in my mind is " why not make a url fopen on your remote? Php will handle all "
what say ?
Re: HTTP: failed socket_read
hi
Your question is fine . But it does not seem to me that fopen can send GET / POST, outside what is looking for ..
Re: HTTP: failed socket_read
can use a context...
Found in the comments on [Link] :
<?php
$data = array ( 'foo' => 'bar' , 'bar' => 'baz' );
$data = http_build_query ( $data );
$context_options = array (
'http' => array (
'method' => 'POST' ,
'header' => "Content-type: application/x-www-form-urlencoded\r\n"
. "Content-Length: " . strlen ( $data ) . "\r\n" ,
'content' => $data
)
);
$context = context_create_stream ( $context_options )
$fp = fopen ( 'https://url' , 'r' , false , $context );
?>
Re: HTTP: failed socket_read
ok
First I scrutinizes each packet received to detect the presence of the </ html> to close the loop myself, without waiting for the server to tell me that it's over.
I needed to access a secure page (https), and failing with sockets that I chose my fsockopen () (this feature had the same concern receiving end, but with the previous hack it works)
I will still try fopen.....
Re: HTTP: failed socket_read
hi
ope fully this might helps you !!!
http://in.php.net/socket_create_pair
try