Hmmm,
Actually, the example given on top of the http.js file is wrong.
One should write:
request.set('method', 'POST');
not
request.set('action', 'POST');
!!!
2012/12/29 Nicolas <[email protected]>
> Hi,
>
> I am just trying to use a Http request on the APE server, but for some
> reason, the GET or POST parameters do not reach the web server.
>
> What's wrong?
>
>
> function record_robot_move_problem(match_id)
> {
> var request = new Http(g_base_URL+'record_robot_move_problem.php?');
>
> request.set('action', 'POST');
>
> // GET or POST data
> request.writeData('match_id', 'match_id');
>
> request.getContent(
> function (result)
> {
> Ape.log("Result http:"+result);
> }
> );
> }
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "APE Project" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/ape-project?hl=en
> ---
> APE Project (Ajax Push Engine)
> Official website : http://www.ape-project.org/
> Git Hub : http://github.com/APE-Project/
>
--
You received this message because you are subscribed to the Google
Groups "APE Project" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/ape-project?hl=en
---
APE Project (Ajax Push Engine)
Official website : http://www.ape-project.org/
Git Hub : http://github.com/APE-Project/