Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Dec 2005

    GetCredentialsL + HTTP POST ??


    I am working on application which needs to send data to server using HTTP POST. I have make use symbian provided HTTPClient Example to achieve the task.
    When i try to upload data using IssueHTTPPostL request function of HTTPEngine to server it asks for user credential. I have provided the user credentials in GetCredentialsL function.

    On the server single POST request is received in two parts in first part it receives POST data without user credentials and in other user credentials without the post data. Due to which data is not being uploaded to server.

    If somebody has gone through the similar situation then please help me to get out of same? or if somebody has pointer to same then do let me.

    Help would be appreciated.


  2. #2
    Registered User
    Join Date
    Aug 2006

    Re: GetCredentialsL + HTTP POST ??


    There is one patch which i followed in my application long before. You can store the cookie information of first request and re-issue the POST request with the stored cookie information.

    I mean when when you issue the POST request you will get fail, bu the session has been authenticate if the username and password provided in correct. When you received FAIL, Issue the another POST request but with the cookies you captured in first request.

    For geting the cookie information refer following article:

    Hope the above said patch work for you also


Similar Threads

  1. waiting for HTTP POST response
    By gemilib in forum Symbian
    Replies: 3
    Last Post: 2007-11-19, 17:00
  2. Using HTTP POST & Nokia 6600 to upload octet stream to server
    By ssandor in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2005-09-19, 11:00
  3. Series 40 phones HTTP POST problem
    By jessicay in forum Mobile Java Networking & Messaging & Security
    Replies: 0
    Last Post: 2004-06-23, 01:01
  4. Replies: 0
    Last Post: 2002-05-09, 12:07
    By dennisluemkemann in forum Mobile Java General
    Replies: 1
    Last Post: 1970-01-01, 02:00

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts