POST request failing but a GET request works
Tom Worthen
We are moving towards Windows 2019 servers and in that process I am attempting to make sure everything is working the same as it did on windows 2012. We have a couple of web services we publish. We use a URL rewrite to make it easier on our customers. So the URL looks like this http://SERVERNAME:2515/REST/WebService/RestAction. The body of the request is xml, don’t know that matters but figured I would mention it. So, I have tried with Postman and SoapUI and I can successfully “hit” the application with a GET request but every time I try with a POST request I get the aqua screen indicating “Magic xpa Partitioning Message” with the detail of “Program not found (-131)”. For a GET I see the request on the broker monitor and get an expected response. For a POST, it never shows on the monitor. If I look at the inetpub log they are both there and the rewritten URL is correct for both. I have validated the permissions on the folder, and I have validated the isapi.dll is “allowed” and has read and execute permissions. If anyone has any ideas they would be willing to suggest? I am willing to look at or check anything to figure this out.
Thanks, Tom |
|
Tim Downie
Magics posting is not the best - you will notice some chars get replaced in certain docs - like it url encodes the body.
Try posting a body with / or % in it.
From memory you need to set these values in the mgreq.ini
DefApp =
DefProg =
The post is working or you wouldnt be getting this returned "“Magic
xpa Partitioning Message”
From: main@magicu-l.groups.io <main@magicu-l.groups.io> on behalf of Tom Worthen <tworthen@...>
Sent: Wednesday, 19 October 2022 2:59 AM To: main@magicu-l.groups.io <main@magicu-l.groups.io> Subject: [magicu-l] POST request failing but a GET request works We are moving towards Windows 2019 servers and in that process I am attempting to make sure everything is working the same as it did on windows 2012. We have a couple of web services we publish. We use a URL rewrite to make it easier on our customers. So the URL looks like this http://SERVERNAME:2515/REST/WebService/RestAction. The body of the request is xml, don’t know that matters but figured I would mention it. So, I have tried with Postman and SoapUI and I can successfully “hit” the application with a GET request but every time I try with a POST request I get the aqua screen indicating “Magic xpa Partitioning Message” with the detail of “Program not found (-131)”. For a GET I see the request on the broker monitor and get an expected response. For a POST, it never shows on the monitor. If I look at the inetpub log they are both there and the rewritten URL is correct for both. I have validated the permissions on the folder, and I have validated the isapi.dll is “allowed” and has read and execute permissions.
If anyone has any ideas they would be willing to suggest? I am willing to look at or check anything to figure this out.
Thanks, Tom |
|
Tom Worthen
We have never set those values, but you did cause me to check the HttpVars. That is where the problem was. I had not updated those values. As soon as I did that it started working.
Thanks for pointing me in the right direction. Tom
From: main@magicu-l.groups.io [mailto:main@magicu-l.groups.io]
On Behalf Of Tim Downie
Sent: Tuesday, October 18, 2022 8:29 PM To: main@magicu-l.groups.io Subject: Re: [magicu-l] POST request failing but a GET request works
Magics posting is not the best - you will notice some chars get replaced in certain docs - like it url encodes the body. Try posting a body with / or % in it.
From memory you need to set these values in the mgreq.ini
DefApp = DefProg =
The post is working or you wouldnt be getting this returned "“Magic xpa Partitioning Message”
From: main@magicu-l.groups.io <main@magicu-l.groups.io> on behalf
of Tom Worthen <tworthen@...>
We are moving towards Windows 2019 servers and in that process I am attempting to make sure everything is working the same as it did on windows 2012. We have a couple of web services we publish. We use a URL rewrite to make it easier on our customers. So the URL looks like this http://SERVERNAME:2515/REST/WebService/RestAction. The body of the request is xml, don’t know that matters but figured I would mention it. So, I have tried with Postman and SoapUI and I can successfully “hit” the application with a GET request but every time I try with a POST request I get the aqua screen indicating “Magic xpa Partitioning Message” with the detail of “Program not found (-131)”. For a GET I see the request on the broker monitor and get an expected response. For a POST, it never shows on the monitor. If I look at the inetpub log they are both there and the rewritten URL is correct for both. I have validated the permissions on the folder, and I have validated the isapi.dll is “allowed” and has read and execute permissions. If anyone has any ideas they would be willing to suggest? I am willing to look at or check anything to figure this out.
Thanks, Tom |
|