×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Regular Contributor
    Join Date
    Dec 2005
    Posts
    151

    How to determine 412 Error while HTTP Request

    Hi,

    I need to capture the HTTP error response 412 when request is rejected by the web server.

    We get TTransactionEvent::EFailed in general for whatever the reason request has failed or rejected by the server. But i need to capture specifically 412 error.

    Is there any pointer to identify the exact reason fro failure.

    Regards,

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,166

    Re: How to determine 412 Error while HTTP Request

    Have you tried to check what additional infromation the event includes, for example you could check the API docs: http://developer.symbian.org/main/do...B12E58EB3.html

    Not fully certain but for example iStatus migth give you some additional information.

  3. #3
    Regular Contributor
    Join Date
    Dec 2005
    Posts
    151

    Re: How to determine 412 Error while HTTP Request

    Hi Yucca,

    I have already cross checked THTTPEvent Class Reference before posting. The iStatus holds value 9 irrespective of the reason of the request failed because of 404 or 412.

    Regards,
    Mohit

  4. #4
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,166

    Re: How to determine 412 Error while HTTP Request

    ok, let me go further on my guessings, have you checked the

    Code:
    RHTTPResponse resp = aTransaction.Response();
    TInt ReturnCode = resp.StatusCode();

  5. #5
    Regular Contributor
    Join Date
    Dec 2005
    Posts
    151

    Re: How to determine 412 Error while HTTP Request

    Hey Yucca,

    resp.StatusCode() comes out to be 200

    Regards,

  6. #6
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,166

    Re: How to determine 412 Error while HTTP Request

    then I'm out of ideas, AFAIK the status code should really be the one giving the http status codes.

  7. #7
    Regular Contributor
    Join Date
    Dec 2005
    Posts
    151

    Re: How to determine 412 Error while HTTP Request

    So do I. I am not able to understand what could be the alternate to identify the Pre Condition Failed situation.

Similar Threads

  1. KErrDisconnected (-36) Error for Http get Request
    By a_binogeorge in forum Symbian Networking & Messaging (Closed)
    Replies: 3
    Last Post: 2008-05-30, 11:08
  2. Raccoon. Internal IO Error while processing request
    By jmv_ in forum Mobile Web Server
    Replies: 9
    Last Post: 2007-10-08, 12:55
  3. weird behavior while canceling a Http request.
    By mangospring in forum Mobile Java General
    Replies: 0
    Last Post: 2007-06-22, 14:08
  4. http request error -33
    By vimal r jain in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2007-03-06, 07:59
  5. Error while sending HTTP Post Request
    By bhonsle in forum Mobile Java Networking & Messaging & Security
    Replies: 2
    Last Post: 2004-01-11, 16:28

Posting Permissions

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