Coding For a Living

rss

A place to share and comment about coding for a living.


Return a string, and just a string, from HTTP Post Mike McIntyre

You want to return a string, just a string, from an HTTP POST call.

You code it like this:

Response.Write("Hello World")

The HTTP POST returns:

All you wanted was “Hello World”.

You should have coded it like this:

Response.Write("Hello World") ' The Response.End method causes the Web server to stop processing the script and return the current result. The remaining contents of the file are not processed. Response.End()