moomima
moomima

Reputation: 1360

How to properly decode HTTP traffic

I'm looking at HTTP traffic, and seeing a POST request that is "application/x-www-form-urlencoded" with strange characters in it:

t=%d8%94%b2%bc+%cb%ae%c9%ab

Various URL decodes that I tried running on this complain that it's not UTF-8 encoded.
I know that in theory a web request can be encoded in any given encoding scheme, but if so, how can I tell which scheme is being used (in order for me to decode it properly)?

I see no hint in the request itself.

This is not a language-specific question (more of a question about the HTTP protocol, I think.)

Any help will be appreciated!

Upvotes: 1

Views: 640

Answers (2)

shobhita
shobhita

Reputation: 44

The link mentioned by Craig is correct. It decodes to Ø”²¼+ˮɫ

Upvotes: 1

Craig S. Anderson
Craig S. Anderson

Reputation: 7374

Your question actually contains the answer (form-urlencoded). The request is URL encoded. See this link for more information.

The strange characters decode to non-ASCII characters except for the '+'. There are decoders on the Web where you can cut and paste your text to see what it really is.

Upvotes: 1

Related Questions