Hi,
Yep, For the CgiParser, they will parse the data which content-Type form
data like.
If the content-Type is not form data, it will not handle it. That's why I
would like to get
the input stream.
Regards,
Hilary
On Thu, Jan 14, 2010 at 21:18, Koen Deforche <[email protected]> wrote:
> 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
>
------------------------------------------------------------------------------
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