Re: How does one return a different status than 20 - WeOnlyDo Discussion board

Re: How does one return a different status than 20 (General questions)

by tpearson, Sunday, September 20, 2009, 20:13 (5324 days ago) @ wodDamir

OK, there is some difference between the two ISAPI implementations.

I'm unable to get the PHP5ISAPI to correctly handle the header output.

Where I'm seeing different results from information returned directly by the FOXISAPI and what I build. The header I'm directed to put into my response is not being forwarded by either the IIS server or the wodWebServerCom. The status page returned by the FOXISAPI to the IIS server does not show the header, wodWebServerCom shows the header.

Further testing has also shown the header I am putting into the IIS and wodWebServerCom are not being used. Both IIS and wodWebServerCom return a status of 200 to the MSXML2.XMLHTTP object. Seeing that the headers are not used in IIS, I will need to program my receiving end to accept calls from both, so the question I originally asked is no longer a valid request.

I would like to see why the status pages are different. Also, why does the StatusCode of the MSXML2.XMLHTTP object return different text from the two servers.

Here's an example of my results
[code]
oxml.open( get , http://{iissever}/isapi/foxisapi.dll/pcserver11.wodcom.testerror , .F.)
oxml.send()
?oxml.status,oxml.statusText <-- 200 OK
?oxml.responseText <-- <html><body><h1>Error #400</h1>Bad Request</body></html>

oxml.open( get , http://{wodWebServerCom}/testerror , .F.)
oxml.send()
?oxml.status,oxml.statusText <-- 200 Not Found
?oxml.responseText <-- <html><body><h1>Error #400</h1>Bad Request</body></html>
[/code]

What is being returned by my process which is called by the foxisapi.dll follows:
[code]
HTTP/1.0 400 Bad Request
content-type: text/html

<html><body><h1>Error #400</h1>Bad Request</body></html>
[/code]


Complete thread: