语言

Menu
Sites
Language
Send server http request with parameters (solved)

For my app I need to send a HTTP POST request to the server with a number of parameters like 'user=somebody&password=secret'.

I looked through the Tizen documentation and understand that I need to create a HttpSession, get a HttpTransaction and then get a HttpRequest which I can submit and monitor through the IHttpTransactionEventListener interface.

My question is how should I add the parameters to the HttpRequest so that the server can process the information and send back a response.

With a HttpUrlEncodedEntity it is possible to add parameters to the HttpRequest.

编辑者为: Brock Boland 17 3月, 2014 原因: Paragraph tags added automatically from tizen_format_fix module.

响应

1 回复
muditha murthy
Refer Tizen::Net::Http::HttpCredentials Class Reference.