I'm trying to debug an HTTP request that produces an error on our server. However, I'm struggling to reproduce the exact request somehow.
On my nginx logs, I see this entry which generated the error
157.55.33.20 - - [22/Nov/2013:04:06:22 +0000] "GET /en/library/search?utf8=\xE2\x9C\x93&q=something HTTP/1.1" 500 0 "-" "Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm)" "-"
However, trying to use curl
or httpie
using the same string produces log entries like:
GET /en/library/search?utf8=\x5CxE2\x5Cx9C\x5Cx93&q=something
or
GET /en/library/search?utf8=xE2x9Cx93&q=something
or
GET /en/library/search?utf8=%5CxE2%5Cx9C%5Cx93&q=something
I just can't seem to reproduce the exact same request. I tried with various command-line parameters, but can't figure this one out.
Any suggestions on how to reproduce the exact same request?