Languages

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.

Edited by: Brock Boland on 17 Mar, 2014 Reason: Paragraph tags added automatically from tizen_format_fix module.

Responses

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