send request with encoding

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
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 = " ='"+$str+"'";

    $http_request -> fetch( $url );
    if( !$http_request -> error ){

Re: send request with encoding

It was just a small mistake putting "+" instead of ".". ='"+$str+"'";

Site Timeline