开发者

Google App Engine post request query string

I'm building my first GAE app. After watching a tutorial video on youtube, (this one) I noticed that when a开发者_开发知识库 post request is made, say from a form, yo don't see the querystring in the URL (my desired behavior).

The surprise arises when I perform a post request from a form, conceptually the same one that's on the video, and the query string is displayed in the URL (not so desired behavior).

Is this something like a default behavior or something? Can I hide those querystring parameters?


I think you talk about the HTTP methods like POST or GET, check the attribute "method" in your form definition, you need to put it to "POST" like

<form action="" method="POST">
...
</form>

You can see more informations: http://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol#Request_methods

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜