HTTP POST Request Bug?

Emoheadshot

New member
I was making a macro to do some API requests for a game I play and I keep having issues
Whenever I use GET requests everything seems to work fine, I have what I need in the query parameters and I get the responses back properly, but when I switch to a POST request I'm getting an error saying the variable is not set
I downloaded another HTTP requesting app and did the same request attempted through MacroDroid and got the successful response back
The only thing I can think is that whenever doing POST requests MacroDroid isn't sending the query parameters
Let me know if anyone else is having problems with POST requests, or if you have any ideas
I have the newest version current 5.28.0
Thanks!
Edit: I meant POST if anyone saw it say PUT, i apologize
 
Last edited:

Endercraft

Moderator (& bug finder :D)
I was making a macro to do some API requests for a game I play and I keep having issues
Whenever I use GET requests everything seems to work fine, I have what I need in the query parameters and I get the responses back properly, but when I switch to a PUT request I'm getting an error saying the variable is not set
I downloaded another HTTP requesting app and did the same request attempted through MacroDroid and got the successful response back
The only thing I can think is that whenever doing PUT requests MacroDroid isn't sending the query parameters
Let me know if anyone else is having problems with PUT requests, or if you have any ideas
I have the newest version current 5.28.0
Thanks!
If you think that's a bug, use the bug report button in troubleshooting with the macro and details about the error.
 

Dimlos

Well-known member
The v5.28.0 release seems to have been withdrawn, and the credibility is a bit low since the test was done in Android x86 environment, but I tried GET PUT POST with query parameters at https://httpbin.org/ and it seems to send the parameters successfully.
At least in my tests, I got the same response as the lower version.
 

FrameXX

Well-known member
HTTP GET and HTTP POST are 2 wholy different types of requests. The API you are reffering to should have mentioned the type of request needed in its documentation.
 

MacroDroidDev

Administrator
Staff member
I believe the issue was that the API only supported parameters in the body, whereas the values were configured as query paramaters so were sent in the query string (as expected).

The solution is to manually set the parameters in JSON format in the body of the message.
 
Top