I’m encountering an issue while trying to send a POST request from my Niotron app to an external website and fetch a response. The URL I’m trying to send the request to is: https://*********/index.php
Issue:
-
I’m sending a POST request with an amount from a textbox using the following format:
Text = “amount=” + Textbox.Text
Post text is not receiving in the web server also -
When I try to fetch the response, I get the following errors:
Error 1101: Unable to get a response with the specified URL.
Error 1103: Unable to complete the given request with the text “amount=3” (or any value I input).
Setup Details:
I have set the content type in my PHP file to application/json.
I am using the PostText block in Niotron to send the request.
The URL and the PHP file on the server are working fine when tested directly via a browser or Postman, but the Niotron app fails to fetch the response.
My goal is to send an amount via POST and get the generated QR code in response.
My Niotron Blocks:
Set the URL to https://*********/index.php
PostText block:
Text = join(“amount=”, Textbox.Text)
I’ve also checked the server-side CORS configuration, and it seems to be correctly set.
Here is my block image
Does anyone know the solution please help me
Or any one have relevant block setup or aia provide me