Hey Hilary,

2010/1/14 Hilary Cheng <[email protected]>:
> Dear All,
>     I have modified the Wt::Http::Request to allow to get contentStream,
> contentType, userAgent and remoteAddr.
> It will allow WResource to get more information from the Http Request.

This makes sense, except for the in() stream: this stream has already
been parsed by our Cgi Parser, and thus is no longer usable, and the
result is available in the request parameters and uploaded files. For
the same reason, I think contentLength() and contentType() are no
longer useful?

So the remainig methods that are useful are:

+std::string Request::userAgent() const
+{
+  return request_ ? request_->userAgent() : std::string();
+}
+
+std::string Request::remoteAddr() const
+{
+  return request_ ? request_->remoteAddr() : std::string();
+}
+

Regards,
koen

------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to