c# - Why is POST data lost when submitting from a Custom 404 page in IIS 6.0? -


I created custom 3.54 cms system in net 3.5, and working locally in IIS 5.1 and 6.0 while posting data It does so that the output does not work on the IIS 6.0 server. I compare the IIS 6.0 site settings to the item's item, and they are almost identical, only difference does not matter.

I have verified that the form is posting in every case (SVN in the code) and there are no redirects when I present (I was throwing an exception to make sure). Some debug info by server:

  IIS 5.1 (My Computer, Works): ServerVariables ["REQUEST_METHOD"] = "Post" Request Kulbita = 1600 Request. JQueryString.Count = 1 (Note: "404; http: // domain / 80 / folder / folder / page.resource" is included in each case). Form = number IIS 6.0 (test server works): ServerVariables ["REQUEST_METHOD"] = "GET" (Note: IIS 6.0 reads as "GET" instead of "POST") RequestBuytes = 1600 Request.QueryString. Count = 1 Request.Form.Count = 109 IIS 6.0 (Production Server does not work): ServerVariables ["Request (request: should be ~ 1600) Request. QueryString.Count = 1 request.Form.Count = 0 (Note : Should be 109)  
P> Do anyone have any ideas? I have read about POST data not submitted in IIS 7.0 for 404 pages, but in 6.0 not My form is in this format:

  form id = "GolfRegistration" name = "GolfRegistration" method = "POST" action = "/ folder / folder / page.resource" OnSubmit = "Return CalculateAmount (); "& Gt; Input Type =" Button "value =" Submit "onClick =" If (Valid input ()) {Submit (Golf Writer); & Gt; & Lt; / Form & gt; For IIS 5.1 only, I set up the resource extension in "IIS> Website> Properties> Home Directory Tab> Configuration Button>" Receive, Head, and Add to Work with Post. "It sends me 405 

EDIT: I changed the post to the gate and in all 3 cases it correctly deposited data, so this is not a form problem. Unfortunately IThe query string can not pass variables (109).

I had a single problem, and unfortunately From, it seems that the answer is "This is a feature."

Read more here: Okay, I tried posting a link for the details of this issue, but it It says, 'No new user posts link.' Instead, I can do the best: "IIS 6: Google 404/405 posted in custom error handler Search data for Eta to "(make sure it is in quotes), and at least at the time of my writing, the result should be a page which I was referring.

In summary, what is happening:

1) Your non-existent URL is POST'd (for example, mydomain.com/somepage) 2) IIS receives the request, note that no page exists, and then it makes another request to your error handler, and the request is received internally, as well. And none of your post data has passed.

The question is, why you are not every due to success in IIS 6.

Read the above link for any more, at any rate.

Incidentally, I am running PHP on IIS 6 / Windows 003, and I found an interesting solution. While PHP does not receive hostile postings from IIS (as you would expect), PHP is still being used in a raw input stream identified by "PHP: // Input", which it is called original < / Em> could read the request body in it would be post variable, in a raw format - I was able to use the parse_str () function of PHP to get POST variable from that raw string.

So, it is possible to do something similar in maybe

- Josh


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -