Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8631809
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T09:16:07+00:00 2026-06-12T09:16:07+00:00

Sometimes httpclient is trying http post to server before server accepts it. I don’t

  • 0

Sometimes httpclient is trying http post to server before server accepts it. I don’t know which situation it occurs but becuase of this problem posting is failed. Why does client acting like this?

Here is some part of the logs;

DEBUG org.apache.http.wire - >> "POST       /destination-path[\r][\n]"
DEBUG org.apache.http.wire - >> "Content-Length: 594[\r][\n]"
DEBUG org.apache.http.wire - >> "Content-Type: application/json[\r][\n]"
DEBUG org.apache.http.wire - >> "Host: url:port[\r][\n]"
DEBUG org.apache.http.wire - >> "Connection: Keep-Alive[\r][\n]"
DEBUG org.apache.http.wire - >> "Expect: 100-continue[\r][\n]"
DEBUG org.apache.http.wire - >> "[\r][\n]"
DEBUG org.apache.http.headers - >> POST /destination-path HTTP/1.1
DEBUG org.apache.http.headers - >> Content-Length: 594
DEBUG org.apache.http.headers - >> Content-Type: application/json
DEBUG org.apache.http.headers - >> Host: url:port
DEBUG org.apache.http.headers - >> Connection: Keep-Alive
DEBUG org.apache.http.headers - >> Expect: 100-continue
DEBUG org.apache.http.wire - >> "data:mydata"

“>>” indicates outgoing operation in this log. This means client is sending requests to server to handshake.
At last statement, data is being tried to be sent. But it should have waited for server response for this connection. Generally this problem occurs at initial connection. Connections after this failed conection trying , are successfull.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T09:16:07+00:00Added an answer on June 12, 2026 at 9:16 am

    RFC 2616 section 8.2.3:

       Because of the presence of older implementations, the protocol allows
       ambiguous situations in which a client may send "Expect: 100-
       continue" without receiving either a 417 (Expectation Failed) status
       or a 100 (Continue) status. Therefore, when a client sends this
       header field to an origin server (possibly via a proxy) from which it
       has never seen a 100 (Continue) status, the client SHOULD NOT wait
       for an indefinite period before sending the request body.
    

    When using the ‘expect: continue’ handshake Apache HttpClient waits for 2000 ms for a 4xx or 100 status prior to sending the request body. One can use the ‘http.protocol.wait-for-continue’ parameter to specify a different value.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Sometimes my server doesn't work and HttpClient tries to connect about 180 seconds before
Sometimes it would be useful to know whether the compiler requires a pre-compiled header
Trying to download file with apache httpclient library and have a problem with resulting
Sometimes I write projects and don't return to them until months later. Unfortunately for
I am trying to implement ping using HttpGet but behavior is random. I am
Sometimes I don't want to provide a default constructor, nor do I want the
I'm coding an android app that sometimes uses php scripts and I'm now trying
Sometimes I run into situation where I find that I need to make an
I am trying to make a proxy server that gets a page from www.xxx.com
Sometimes in my code I have a function which can take an argument in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.