HTTP/1.0 417 Expectation Failed Mime-Version: 1.0 Date: Fri, 03 Feb 2012 17:23:06 GMT Content-Type: text/html Content-Length: 1607 X-Squid-Error: ERR_INVALID_REQ 0 Vary: Accept-Language Content-Language: en Connection: close
Tak wykonuje żadanie,
$ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'http://xxxxx.pl/xxxxx/posting.php?mode=reply&t=' . $data['temat_id'] ); curl_setopt ($ch, CURLOPT_POST, 5); curl_setopt ($ch, CURLOPT_POSTFIELDS, 'message=' . strip_tags( iconv( 'utf-8', 'ISO-8859-2', $data['tresc'] ) ) . '&mode=reply&t=' . $data['temat_id'] . '&sid=' . $sid . '&preview=true' ); curl_setopt( $ch, CURLOPT_COOKIEFILE, $cookie ); curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1 ); curl_setopt( $ch, CURLOPT_REFERER, 'xxxxx' ); 'User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8', 'Accept-Charset: ISO-8859-2,utf-8;q=0.7,*;q=0.7' ) ); $odpowiedz = curl_exec ($ch); curl_close( $ch );
Pomocy...