HTTP to translate message
#4

In "request goes" you have some weird string with a lot of %'s? You only have to urlencode parameters
pawn Код:
SendTranslatedMessage(playerid,message[])
{
    new buf[1024];
    format(buf,sizeof(buf),"translate.yandex.net/tr.json/translate?lang=en-ru&text=%s",urlencode(message));
    printf("Request goes: %s",buf);
     HTTP(playerid, HTTP_GET, buf, "", "MyHttpResponse");
}
Reply


Messages In This Thread
HTTP to translate message - by pasha97 - 19.03.2013, 14:42
Re: HTTP to translate message - by Misiur - 19.03.2013, 14:47
Re: HTTP to translate message - by pasha97 - 19.03.2013, 15:18
Re: HTTP to translate message - by Misiur - 19.03.2013, 15:23
Re: HTTP to translate message - by pasha97 - 19.03.2013, 15:29
Re: HTTP to translate message - by Misiur - 19.03.2013, 15:37
Re: HTTP to translate message - by pasha97 - 19.03.2013, 15:40

Forum Jump:


Users browsing this thread: 1 Guest(s)