The buffer size in the httpClient was configured improperly . The buffer size on the httpclient cannot be more than a Megabyte. I am not sure whether the issue with the http client or the IIS server because the httpClient can send data with greater buffer size >1MB to the Apache server.
Solution is I set the buffersize less than a MB and it works good now.