Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Request object

Status
Not open for further replies.

JontyMC

Programmer
Nov 26, 2001
1,276
GB
How do you get hold of the complete http message? I want to write back to the browser what is being sent.

Jon

"I don't regret this, but I both rue and lament it.
 
Here is what you write in the page with saved as sender.html

Put this after the body-tag:

<a href="receiver.asp?message=goingplaces">Click me to send a message over the http header</a>

In the page receiver.asp you write
<%
Dim message
message=request.querystring("varablename_used_in_send")
response.write message
%>
 
I need the whole message, eg:

POST /path/script.cgi HTTP/1.0
From: frog@jmarshall.com
User-Agent: HTTPTool/1.0
Content-Type: application/x-Content-Length: 32

home=Cosby&favorite+flavor=flies

Jon

"I don't regret this, but I both rue and lament it.
 
Just loop through each entry in Request.ServerVariables


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
I want all the header info too.

I thought it would be simple, like Request.ToString() or something

Jon

"I don't regret this, but I both rue and lament it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top