Instead of this:

HTTP/1.1 200 OK

I want the server to return this to the client:

HTTP/1.1 200 

Both responses are RFC-compliant. This is for doing regression testing on a broken HTTP client.

Running Apache httpd version 2.2.14.

  • The spec actually requires a space after the reason-code, though the following reason-phrase can be empty. If the server isn't sending a space, then it's the server that's broken. That said, I've never heard of being able to customize this in Apache, though of course your web application can send whatever status line it wants. Jun 23 '20 at 0:35
  • @MichaelHampton there is a space in the second code line above. Also, the application I want to test is acting as a client, not a server in this case. Jun 23 '20 at 0:38
  • Ahh, so there is a space there. It's a bit difficult to notice. Jun 23 '20 at 0:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.