This file is an extension of the AgentRequest class with specialty fields and methods for handling HTTP requests. It prints the HTTP headers to the response stream if the agent responding to the request doesn't print correct HTTP/1.1 response headers before writing other content to the output stream. HTTPAgentRequest also has methods for using cookies and for managing sessions with a SessionManager. HTTPAgentRequest implements the Props interface, and the following props are usually set by the server:
path
The requested path, for instance /index.html.
request_remote_addr
The address of the machine making the request.
request
The text of the request, for example: GET /index.html HTTP/1.1\nAccept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*\nAccept-Language: en-us\nAccept-Encoding: gzip, deflate\nUser-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 1.0.3705; InfoPath.1)\nHost: localhost\nConnection: Keep-Alive\n
request_server_name
The server name or IP, for instance 172.20.0.108.
request_type
The type of request, for example HTTP.
request_id
The ID assigned to the request by the server, for instance HTTP:client1.
host
The server name requested by the client (useful on machines hosting multiple websites), for instance www.microsoft.com.
request_server_port
The server port that the request arrived on, usually port 80 (or 441 for HTTPS requests).
Public static (Shared in Visual Basic) members of this type are
safe for multithreaded operations. Instance members are not guaranteed to be
thread-safe.