I want to POSTgenerate data on the default web server page, for example:
POST http://errorreporting.example.com/ HTTP/1.1
I want the server to be responsible for 302redirecting the client to where it should go POST. A file default.aspon the server performs this task ( which is the technique recommended by Microsoft ) by doing Redirect:
default.asp:
<%
Response.Redirect "SubmitError.ashx"
%>
When I just browse the server:
GET http://errorreporting.example.com/ HTTP/1.1
I get the expected response from the server:
HTTP/1.1 302 Object moved
Server: Microsoft-IIS/5.0
Location: SubmitError.ashx
...
But when I'm POSTon the server:
POST http://errorreporting.example.com/ HTTP/1.1
The server is getting very angry with me:
HTTP/1.1 405 Method not allowed
Connection: close
Allow: OPTIONS, TRACE, GET, HEAD
...
, submit URL, URL. , , , URL- (.. ):
http://errorreporting.example.com/SubmitError.asphttp://errorreporting.example.com/SubmitError.aspxhttp://errorreporting.example.com/SubmitError.ashxhttp://errorreporting.example.com/ErrorReporting/Submit.ashxhttp://errorreporting.example.com/submiterror.phphttp://errorreporting.example.com/submit/submiterror.ashx
.
. URL, :
/* SErrorReportingUrl = 'http://www.example.com:8088/ErrorReporting/SubmitError.ashx';
SErrorReportingUrl = 'http://www.example.com/ErrorReporting/SubmitError.ashx';
SErrorReportingUrl = 'http://errorreporting.example.com:8088/ErrorReporting/SubmitError.ashx';
SErrorReportingUrl = 'http://errorreporting.example.com/SubmitError.ashx';
SErrorReportingUrl = 'http://errorreporting.example.com';
SErrorReportingUrl = 'http://errorreporting.example.com/SubmitError.ashx';
*/
SErrorReportingUrl = 'http://errorreporting.example.com/submit/SubmitError.ashx';
:
HTTP/1.1 200 OK