curl delay or wait for 1 second on HTTP POST requests

Solution Verified - Updated -

Issue

  • curl delay or wait for 1 second on HTTP POST requests
  • Using curl to perform a HTTP POST to a webserver, there is a delay of over 1000ms processing the reply from the httpd
  • Time of curl command is expected to be more like 20-90ms, not 1000ms:
time curl -H "Content-Type: application/xml" -d @body.xml -X POST http://127.0.0.1:8080/path/to/handler

real    0m1.015s
user    0m0.005s
sys     0m0.007s

Environment

  • Red Hat Enterprise Linux
  • curl commandline binary or other application using libcurl
  • HTTP POST

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.