rohith0904
rohith0904

Reputation: 53

Request line in HTTP request can be case sensitive?

What if i give request where request line is in upper case & another request where request line is in lower case, does the server respond with same response in both the instances.

Upvotes: 0

Views: 543

Answers (2)

Julian Reschke
Julian Reschke

Reputation: 41997

All parts of the request line are case-sensitive. Lowercasing the method name will make it a different (unknown) method. Lowercasing the protocol name will make the request invalid. Lowercasing the URL will make it a request for a different resource.

Upvotes: 3

miken32
miken32

Reputation: 42701

The URL is case sensitive. Unless your web server is running a case-insensitive operating system, or you have some rewriting going on with your web server. W3C would like them to be considered case sensitive.

Upvotes: 2

Related Questions