[MoMoBangalore] IssueHTTPGetL() problem
Ashwin Murali
ashwin.murali at gmail.com
Wed Mar 21 13:35:18 IST 2007
My guess is:
The RStringF variable 'method' is 16 bit.
The RHTTPSession::GetTable() is 8 bit data.
The RHTTPSession::GetTable() function returns an enumeration array of values
from the response payload coming in via the GET request of your iSession
connection handler.
Try doing a conversion here before you pump the data into the method
variable.
Chao...
Ashwin.
On 3/21/07, joby kuttan <joby.nk at gmail.com> wrote:
>
> sir,
>
> i am trying to get an http connection to do a client-server application
> .I am calling the IssueHTTPGetL() fuction , the fuction is pasted below
>
>
> void CWebClientEngine::IssueHTTPGetL( const TDesC8& aUri )
> {
> // Parse string to URI (as defined in RFC2396)
> TUriParser8 uri;
> uri.Parse( aUri );
>
> // Get request method string for HTTP GET
> RStringF method = iSession.StringPool().StringF( HTTP::EGET,
> RHTTPSession::GetTable());
>
> // Open transaction with previous method and parsed uri. This class
> will
> // receive transaction events in MHFRunL and MHFRunError.
> iTransaction = iSession.OpenTransactionL ( uri, *this, method );
>
> // Set headers for request; user agent and accepted content type
> RHTTPHeaders hdr = iTransaction.Request().GetHeaderCollection();
> SetHeaderL( hdr, HTTP::EUserAgent, KUserAgent );
> SetHeaderL( hdr, HTTP::EAccept, KAccept );
>
> // Submit the transaction. After this the framework will give
> transaction
> // events via MHFRunL and MHFRunError.
> iTransaction.SubmitL();
> iRunning = ETrue;
> }
>
> but when execute " RStringF method = iSession.StringPool().StringF(
> HTTP::EGET,RHTTPSession::GetTable()); " statement application closes
> .
> I don't know why this happends , can u help me.
>
> _______________________________________________
> bangalore mailing list
> bangalore at mobilemonday.in
> http://mobilemonday.in/mailman/listinfo/bangalore
>
>
--
The cruise is on...
Ashwin Murali. T
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mobilemonday.in/pipermail/bangalore/attachments/20070321/77badc29/attachment.html
More information about the bangalore
mailing list