Bruce,
Thanks for your help. The information about the mapping of IIS works fine
for telling asp.net to work on .htm files correctly. I verified this with a
test application by renaming an .aspx file to .htm and that works fine for
web page browsing and messages intstigated by loading the test.htm page.
The issue that I still seem to have and dont fully understand what to do is:
This application that sends Post messages is not using a web form or any
form whatsoever. It is sending the Post message as I have shown to the .htm
page which I want take and parse and save into a file. I guess im still to
new to understand how these messages work as I come from a non web
background.
Im sure Im just missing something simple. Im placing my streamwriter code
in the page_load event as that is the only place I see where a post message
is handled. This may be my big mistake as the page is never really loaded,
Post messages are just sent to it. Is there an event which just receives
the Post message?
I have created a sample code-behind web application which writes to a test
output file to see if it everything is fine. When I use a browser to access
the test.htm page it responds correctly in the IIS log with a 200 message
and writes to my log with my debug strings as the page_load is probably
responding to the event. When I actually use the real application which is
sending the post messages without web forms the server log shows 405 which I
know is not good. Im stumped as what to do..
Thanks for any Help you can provide!
BM/
"bruce barker" <no***********@ safeco.com> wrote in message
news:ee******** ******@TK2MSFTN GP10.phx.gbl...
its a standard web form post. the data is in form field "status". the only
trick you need to do is map the .htm extension to asp.net processing for
your application (application properties tab of iis), and the following
will work
test.htm >>>
<%@ Page Language="c#" %>
<%
Response.Write( "You sent:" + Request.Form["status"].Value);
%>
-- bruce (sqlwork.com)
"BM" <bl**@blah.co m> wrote in message
news:#E******** ******@TK2MSFTN GP11.phx.gbl... Hello,
Ok, Im new to using ASP.NET and IIS so im not sure how or where to post
this question but here goes:
I am running IIS 5.1 on WinXP. I need to process http POST messages
sent from another application that I dont have control over. The messages
are sent to a web page called test.htm . The message looks similiar to the
following:
data "POST /test.htm HTTP/1.0
Content-Type: application/x-www-form-urlencoded
Content-Length: 101
status=02%2F01% 2F04%2023%3A21% 20TEST MESSAGE%20HELLO % A%0D%0A"
The question is since this is being sent to a .htm page can I get these
messages and somehow process these using ASP.NET. I dont have control
over that it goes to test.htm (instead of test.aspx).
With a windows form I have been able to open a socket connection and
read these messages live and create files, databases etc, but with IIS
involved on the same machine it locks that port (80) and would be nice if I could
use ASP.NET to process these.
Thanks..
BM