http request params problem
| Wed, 2005-08-31 10:03 | |
|
Hi all,
I have following strange problem - I want to send data to server via HTTP:POST method. Here is my code: iSocketServ.Connect(); iConnection.Open(iSocketServ); _LIT8(KContentType, "text/html"); RStringPool string_pool = iHttpSession.StringPool(); RStringF method = string_pool.StringF(HTTP::EPOST, RHTTPSession::GetTable()); TUriParser8 uri; uri.Parse(*request); iTransaction = iHttpSession.OpenTransactionL(uri, *this, method); RHTTPHeaders hdr = iTransaction.Request().GetHeaderCollection(); RStringF cont_type_str = string_pool.OpenFStringL(KContentType); THTTPHdrVal cont_type(cont_type_str); hdr.SetFieldL(string_pool.StringF(HTTP::EContentType,RHTTPSession::GetTable()), cont_type); cont_type_str.Close(); iTransaction.Request().SetBody(*this); iTransaction.SubmitL(); When my url is: http://123.123.123.123/application/page.aspx - connection to sever is ok but when url is : http://123.123.123.123/application/page.aspx?data=123*value;2;value1* the THTTPEvent status  in my MHFRunL is EFailed ![]() thanks! |
|






