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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Suppress ASP Response

Status
Not open for further replies.

ToddWW

Programmer
Mar 25, 2001
1,073
US
This might be an IIS question, but I thought I would start here.

Is there any way to suppress a response from an ASP web page or remove default headers from the response such as ASP Session ID, etc..

I have an automated thin client posting information to an ASP web page. The thin client is connected to a cellular network which charges by the KB. Even though my ASP page returns no clear text to the client, the headers in the HTTP 200 response take up about 500 bytes. Since the thin client posts information to my site every 5 minutes, this amouts to about 1MB per month which is costing me about $7 a month. Doesn't seem like much, but we are deploying 1000's of these clients over the next few months. Any help would be appreciated.

ToddWW
 
If you are not using sessions then just disable session state in IIS.

Just a guess but you might be able to get a smaller response if your HTTP request is just a HEAD instead of a GET or POST.

If you really need the smallest possible responses to simple request then ASP might not be the best platform. You might consider writing a simple HTTP server to handle requests from the mobile devices. Just a little program that accepts incoming requests on port 80 and responds to the incoming requests... maybe you could even buy a lightweight scriptable HTTP server for the purpose.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top