473,513 Members | 2,552 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How do you view POST headers?

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 ]
[ su*******@12jabber.com <--jabber IM ]

Jul 22 '05 #1
2 2423
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

"Sugapablo" <ru**@REMOVEsugapablo.com> wrote in message
news:pa****************************@REMOVEsugapabl o.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 ]
[ su*******@12jabber.com <--jabber IM ]

Jul 22 '05 #2
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 ]
[ su*******@12jabber.com <--jabber IM ]

Jul 22 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
3957
by: Michael Foord | last post by:
I'm receiving POST data to a CGI, which I'd like to forward to another CGI using urllib2. I have two options - 1) Parse the data using cgi.FieldStorage() and then rebuild the POST request into a dictionary - including any files (? uploading files by urllib2 untested and undocumented - examples seem to be for httplib). 2) Read the whole...
2
1778
by: vm | last post by:
Hi, for some reason my POST is not working properly. I am basically just trying to get a simple stock quote from yahoo by posting the ticker symbol (GE as an example) into finance.yahoo.com. However, when I POST, I do get a response back, but it is just the main page finance.yahoo.com and it doesn't seem as if the POST got through. I am...
2
3262
by: Keith Selbee | last post by:
I am trying to submit data to a webpage in the form of a post and my code is below. It is a function that takes a url and the post content as strings and then performs the post. But as soon as I add the post data to the headers I get an exception that just says "headers". Can anyone please help me here? Thanks.... public string...
3
2814
by: Jacky | last post by:
hi, I am trying to view the custom headers in an ASP.NET page. I am able to view all the standard headers using the method Request.Headers.Get(). But if i set a custom header using Response.AddHeader("ID","value"), the key or value doesnt appear in the Request.Headers collection. What could be reason to this problem? Does ASP.NET...
2
6017
by: LD | last post by:
Hi, I am trying to upload a zip file and other form data elements to a server and get a response. The server keeps responding with Malformed Multipart Post. Can anyone see what might be wrong here? Any feedback much appreciated. Dim vbCrLf As String = Convert.ToString(Chr(13)) + Convert.ToString(Chr(10)) Dim vbCr As String =...
0
3796
by: CFloyd | last post by:
I have a web service client that sends an XML string to the web service for processing. I alos have to add some headers to the post. I first establish the baseuri as === baseuri = new Uri("http://192.168.100.67/mimservice/mimosawebservice.asmx/MWS32Service === Then I pass the uri and the xml string along to another method the includes: ===...
0
1186
by: CFloyd | last post by:
I have a web service client that sends an XML string to the web service for processing. I alos have to add some headers to the post. I first establish the baseuri as === baseuri = new Uri("http://192.168.100.67/mimservice/mimosawebservice.asmx/MWS32Service === Then I pass the uri and the xml string along to another method the includes: ===...
1
2965
by: Matik | last post by:
Hey, First, sorry if this post appear twice, because, I can not find my post recently send, trying to post it once again. I'm out of ideas, so, I thought, will search help here again :( I'm trying to prepare a view for ext. app. This is in normal cases very easy, but what if the view structure should be dynamic?! Here is my point (I...
4
2215
by: Marc | last post by:
Dear people, I am studying for 70-528 and in the self paced training kit written by Glenn Johnson at chapter one I find a list of HTML verbs and their description. If possible I would like to submit a posting here to clearify a few things I do not understand. <text in the book> GET : Gets a URL from the server. A GET request for a...
0
7270
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7178
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
1
7128
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7543
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5704
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5103
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3242
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1612
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
817
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.