Checking my HTTP/1.1

Can anyone suggest an online site which will verify the POST I send to it complies with HTTP 1.1?

I’m sending to www.example.com and getting a good 200 response (along with what i think to be the correct html), but I’m unsure if this means I am correctly complying or whether this means that example.com is just best guessing and making allowances.

My header contains POST / HTTP/1.1 in an attempt to force the other side.

You can check against some features here David: http://jigsaw.w3.org/HTTP/

Also read THIS about what you need to implement to make it compliant.

(I just clicked “preview” and it appeared to send my message, but it’s not there…erm…how odd…aaaaaanyway…)

Thanks, Rick.
Nothing there seems to contradict my belief that I’m doing it right. I just wondered if there was a simple online equivalent of :

http://www.jsontest.com/#headers

which returned a “Yes you are HTTP1/1 compliant” or “No! You are riddled with errors!” I know the acid test is try it live, but even so you can’t rely on other sites to be right either…

Have you read the rfc on http 1.1? There are a bunch of requirements to be 1.1 compliant.

http://www.ietf.org/rfc/rfc2616.txt

I will if I have to.
But I’m warning you, if I hang myself through boredom it’ll be your fault for suggesting it…

I should have given my post some scope - I’m only writing API calls to remote REST servers. Nothing has baulked yet so I’ll save that literary gem for when problems ensue.

The characters are a bit one dimensional and the places aren’t up to much, but you have to hand it to them for technical detail …

The place where you’ll likely have trouble is if the server starts sending chunked responses, like if the content is extraordinarily long for some reason. It’d probably be worth reading through the requirements for 1.1 compliance, just so you recognize them when they happen.

Well a HTTP 1.1 is not just send a message and receive a 200/OK. :slight_smile:

From 1.0 to 1.1 more than 20 new responses were introduced. :stuck_out_tongue:

You may can “cheat” some public API for now trying to fake an 1.1 request, but in some undetermined moment you can receive an unexpected response and your communication could go crazy. :stuck_out_tongue:

I’ll just change my name and move to Brazil …

Bring money. You will need it. :slight_smile:

That site is quite fun. Thanks.