Home All Groups Group Topic Archive Search About

How do you view POST headers?



Author
18 Mar 2005 7:48 PM
Sugapablo
How do I display all of the POST headers in ASP.

What I want to see is all information related to a POSTed file and it's
attributes, sort of like this:

POST /file.asp?var=value HTTP/1.0
Host: www.domain.com:80
Connection: Keep-Alive
Content-Type: multipart/form-data; boundary=xxxxx
Content-Description: form-data-1
Content-Disposition: inline; filename=file.txt
Content Length:1221

[Property File]
This is the text of this file.
This is the text of this file.
This is the text of this file.
This is the text of this file.
This is the text of this file.
This is the text of this file.



--
[ Sugapablo                             ]
[ http://www.sugapablo.com <--music     ]
[ http://www.sugapablo.net <--personal  ]
[ sugapa***@12jabber.com   <--jabber IM ]

Author
18 Mar 2005 10:39 PM
Mark Schupp
for each i in Request.ServerVariables
if i <> "ALL_HTTP" Then
  Response.Write i & ":"
  Response.Write Request.ServerVariables(i) & "<br>" & vbcrlf
end if
next

See if the results contain the information you need.

--
--Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com

Show quote
"Sugapablo" <r***@REMOVEsugapablo.com> wrote in message
news:pan.2005.03.18.19.48.38.408548@REMOVEsugapablo.com...
> How do I display all of the POST headers in ASP.
>
> What I want to see is all information related to a POSTed file and it's
> attributes, sort of like this:
>
> POST /file.asp?var=value HTTP/1.0
> Host: www.domain.com:80
> Connection: Keep-Alive
> Content-Type: multipart/form-data; boundary=xxxxx
> Content-Description: form-data-1
> Content-Disposition: inline; filename=file.txt
> Content Length:1221
>
> [Property File]
> This is the text of this file.
> This is the text of this file.
> This is the text of this file.
> This is the text of this file.
> This is the text of this file.
> This is the text of this file.
>
>
>
> --
> [ Sugapablo                             ]
> [ http://www.sugapablo.com <--music     ]
> [ http://www.sugapablo.net <--personal  ]
> [ sugapa***@12jabber.com   <--jabber IM ]
>
Author
19 Mar 2005 12:00 AM
Sugapablo
On Fri, 18 Mar 2005 14:39:57 -0800, Mark Schupp wrote:

> for each i in Request.ServerVariables
>  if i <> "ALL_HTTP" Then
>   Response.Write i & ":"
>   Response.Write Request.ServerVariables(i) & "<br>" & vbcrlf
>  end if
> next

Neither ALL_HTTP nor ALL_RAW have the POST data.

--
[ Sugapablo                             ]
[ http://www.sugapablo.com <--music     ]
[ http://www.sugapablo.net <--personal  ]
[ sugapa***@12jabber.com   <--jabber IM ]

AddThis Social Bookmark Button