Here.
https://github.com/cesanta/mongoose/tree/master/examples/http_client


On Tue, Aug 5, 2014 at 5:01 PM, Charlie Scott-Skinner <
[email protected]> wrote:

> Thanks replying Sergey :)
>
> Whether I use...
> mg_printf (connection,
> "/gapi/translate?from=eng&dest=fra&format=xml&phrase=cat&pretty=true");
> or
> mg_printf_data (connection,
> "/gapi/translate?from=eng&dest=fra&format=xml&phrase=cat&pretty=true");
>
> ...or direct assignment...
>
> connection->http_version = "1.1";
> connection->uri = "/gapi/translate";
> connection->query_string =
> "from=eng&dest=fra&format=xml&phrase=cat&pretty=true";
> connection->request_method = "GET";
>
> ... I am getting the same result (400, bad request).
>
> How should the API call be structured?
>
> --
> You received this message because you are subscribed to the Google Groups
> "mongoose-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/mongoose-users.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"mongoose-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/mongoose-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to