search for: originatingheaderservlet

Displaying 1 result from an estimated 1 matches for "originatingheaderservlet".

2007 Dec 03
1
Originating Client Request
...t may contain issues (like case, underscore''s rather than hypens and any linefeed issues). It''s imperative a capture this exactly as it was sent by the client as this is an essential part of my rails application. I wrote a very simple WEBrick Servlet which does this: class OriginatingHeaderServlet < WEBrick::HTTPServlet::AbstractServlet def do_GET(request, response) response[''Content-Type''] = ''text/plain'' response.status = 200 response.body = request.to_s end end which produces... GET /header HTTP/1.1 User-Agent: Mozilla/5.0 (Maci...