Hello.


I am getting an error when i send an html form created by a Checkout.JS wich tokenizes a credit/debit card information, and sends it through a Html form, with a Post method to a webscreen, this webscreen has to get the form value.

When I tried it, it gave me an error:

“405 - HTTP verb used to access this page is not allowed.

The page you are looking for cannot be displayed because an invalid method (HTTP verb) was used to attempt access.”


Thank you.

Hi Ammet,

So basically the error message tells you, that you cannot use the POST method.

Could you give more context or maybe share (part) of the OutSystems code?

Regards,

Daniel

Hi Ammet ,

I found few posts on google and most of the people solved it with this. Please check below link if you can get any help.

https://forums.iis.net/t/1201030.aspx?405+HTTP+verb+used+to+access+this+page+is+not+allowed+


Regards,

-PJ-

Daniël Kuhlmann wrote:

Hi Ammet,

So basically the error message tells you, that you cannot use the POST method.

Could you give more context or maybe share (part) of the OutSystems code?

Regards,

Daniel

Hi Daniël,

I have 3 buttons.

'Token' Button, calls a REST API, it returns a Token

'Session' Button' uses this Token and the Amount value in the input, to create a Token Session.

...


'Pago' Button contains a javascript. (This)

 It creates a form inside a hidden container under the buttons.



So, when i click 'Pago' button, the js creates 'Paga Aqui' blue button. This blue button opens a form who permforms the Post Method.



But i got this error



Now, all this is done in Reactive. If i change the 'action' attribute to a WebsCreen from another module (Traditional Web), i can successfully get the response of that form, with a GetRequestContent in the preparation of the Webscreen (Traditional Web)



Kind regards.

Ammet.



Hi Ammet,

Another option you may want to explore is to create a rest service that supports post that then redirects to a reactive screen. 

Cheers,

Tiago Simões 

Tiago Simões wrote:

Hi Ammet,

Another option you may want to explore is to create a rest service that supports post that then redirects to a reactive screen. 

Cheers,

Tiago Simões 

Hi Tiago,

pls can you help me how can I redirect from REST API Method to react (or any other) screen?

I am facing similar problem in mobile app (and the same in react). After user authorization on Microsoft login page it redirects me back with needed "code" value in POST Form Data request. If I set redirect uri to react or traditional screen, I am not able read the value from "Form Data". If I set redirect uri to REST endpoint I can read this value, but my app stops on empty screen and I am not able return user to home screen.

I am following this guide:
https://winsmarts.com/how-to-call-the-userinfo-endpoint-in-azuread-6ff769567a5a

Thanks for any help!

Hi Roman,

You can use the HTTPRequestHandler extension. You may need also to change the Rest API Method HTTP Method property to POST.


Cheers,
Tiago Simões

Thank you very much, that's exactly what I needed