Grabbing Form data without using the Request.Form() Method 
Author Message
 Grabbing Form data without using the Request.Form() Method

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. ?

Thanks in advance!!!

--Ryan
_____________
This is madness!!!



Tue, 15 Apr 2003 02:15:02 GMT  
 Grabbing Form data without using the Request.Form() Method


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



Tue, 15 Apr 2003 02:21:28 GMT  
 Grabbing Form data without using the Request.Form() Method
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? 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.

Thanks for the feedback Chad. Any other ideas?

--Ryan
_________
This is madness!!!


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



Tue, 15 Apr 2003 02:43:12 GMT  
 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



Tue, 15 Apr 2003 03:24:28 GMT  
 Grabbing Form data without using the Request.Form() Method
I was referring to the PERL example I mentioned in the first post.


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?

> > 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





> > > > 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



Tue, 15 Apr 2003 04:25:16 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. Read client table data via ASP Request method after posting a form

2. How can i print Everything on my form without using th printform method

3. Access form data without creating a new instance of the form

4. Linking two different tables on one form WITHOUT using Data Environment Deisgner

5. Opening databases without using Forms and placing the data control objects on them

6. using Data Control without a form

7. Opening databases without using Forms and placing the data control objects on them

8. Q: VB4: Forms without titlebar, gfx without form?

9. Using VBscript to simulate a FORM/POST METHOD without using the FORM tag?

10. Question: request.form only getting data up to first space

11. Getting all the data from a request.form

12. request.form(data)

 

 
Powered by phpBB® Forum Software