
Grabbing Form data without using the Request.Form() Method
Quote:
> Using Request.ServerVariables("ALL_HTTP") or
> Request.ServerVariables("ALL_RAW") was not returning the data from a HTML
> form POST. In a form GET I can easily retrieve the unparsed querystring
> using Request.ServerVariables("Query_String") but no such facility existed
> that I could see to grab the form data.
> Using Request.Form will work just fine-thanks for pointing that out-but if I
> don't wish to use the Requet object and instead read the data from STDIN
> using a COM+ object how would I accomplish that?
STDIN? This isn't a console application, STDIN has no bearing in the
ASP/COM world. Are you calling CGI using this or what are you doing exactly?
Why would you need STDIN?
Do you mean all the HTTP headers?
Quote:
> I have seen an example somewhere in the cloud illustrating using VB to write
> a CGI component but I lost track where that was. I don't want to write an
> ISAPI DLL because I have heard they are a pain-unless you guys know otherwise.
-Chad
Quote:
> > > I have seen this work well in PERL with the following syntax:
> > > read(STDIN, $buffer, $ENV{'CONTENT_LENGTH'});
> > > How can I accomplish the same with either a VBScript or JScript etc. ?
> > Why would you not want to use the Request.Form method?
> > If you want the whole, unparesed form string, just do:
> > sMyString = Request.Form
> > sMyString will be something like: firstname=James&flavor=Rocky+Road
> > Alternatively, you can hack and slash your way through the entire
> > HTTP header by using Request.ServerVariables("ALL_HTTP") or
> > ALL_RAW
> > -Chad