Posted by mich dobelman on 08/20/06 09:15
I am using the snoopy.class.php to send some http request.
Does anyone know if it allows to send request with specific encoding?
What i want to do is sending japanese as a parameter. But always gives
me an error "Invalid protocol "
$http_request = new Snoopy;
$str = mb_convert_encoding($this -> mAddress,"UTF-8", "Shift_JIS");
$url = "http://www.myusite.jp/api/?v=1.1&q='"+$str+"'";
$http_request -> fetch( $url );
if( !$http_request -> error ){
}
[Back to original message]
|