×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Jul 2006
    Posts
    6

    http post,server side response with code 100 continue

    i use following code to connect to the web server(iis with asp.net)
    String s = "http://" + m_sUrl + m_sDstPage;
    m_HttpConn = (HttpConnection) Connector.open(s, Connector.READ_WRITE);


    m_HttpConn.setRequestMethod(HttpConnection.POST);
    m_HttpConn.setRequestProperty("Content-Type",
    "application/x-www-form-urlencoded");
    m_HttpConn.setRequestProperty("Content-Length",
    Integer.toString(m_sPara.length()));
    DataOutputStream dos = m_HttpConn.openDataOutputStream();
    dos.write(m_sPara.getBytes("utf-8"));

    the problem is :when i use http1.1,the response code is 100,is it ok?
    in http1.0 the server can reponse with 200

  2. #2
    Registered User
    Join Date
    Jul 2006
    Posts
    6

    Re: http post,server side response with code 100 continue

    btw , i can receive data in both way except that the response code is different,so i want
    to make sure that 100(continue) is ok for me?

  3. #3
    Super Contributor
    Join Date
    Dec 2005
    Location
    Europe/Poland/Warsaw
    Posts
    1,697

    Re: http post,server side response with code 100 continue

    hi ringer,
    not being experienced in that matter but from specs:
    The client SHOULD continue with its request. This interim response is used to inform the client that the initial part of the request has been received and has not yet been rejected by the server. The client SHOULD continue by sending the remainder of the request or, if the request has already been completed, ignore this response. The server MUST send a final response after the request has been completed.
    for 100 status code:
    http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html
    regards,
    Peter

Similar Threads

  1. How to handle a response with HTTP status code 100 (Continue)?
    By danieldkim in forum Mobile Java General
    Replies: 5
    Last Post: 2004-01-19, 10:54
  2. nokia 7650 http gprs hang (CODE ATTACHED)
    By schm1 in forum Mobile Java General
    Replies: 6
    Last Post: 2003-12-19, 09:42
  3. 7650 Http Connection Works! Source Code Example
    By sjwilks in forum Mobile Java General
    Replies: 3
    Last Post: 2003-02-10, 14:50
  4. nokia 7650 http button press hang (CODE ATTACHED)
    By gwhistance in forum Mobile Java General
    Replies: 0
    Last Post: 2002-08-30, 09:17

Posting Permissions

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