Http get and pont request (required cookie)

ofira85

New member
Hi,

I was tried (spent a lot of time) to create a macro of request http (first send get, then send post).
In the middle, between thr get request and the post I know that i should get some cookie which let the approval to the server when i send the post.
I know this because I tried to do all of these steps through the computer (postman for those who know - application for http request, etc...)

In macrodroid I can sucess to do the get step and get the resulte content but unable to see or accept the relevant cookie.....

Can someone help me with this?

Thx.
 

MacroDroidDev

Administrator
Staff member
Maybe share more specific details of exactly what you are sending (You can blank out sensitive bits if needed). Providing as much detail as possible makes it easier to understand exactly what you are doing and what is failing.
 

RSF

Well-known member
Are you trying to obtain cookie value(s) as part of the response from the HTTP GET action?

If so: GET's send cookie values back in the header of the HTTP response, but I'm not sure MacroDroid makes that available... You can send a cookie value in an HTTP POST (or GET) action via the "Header Params" tab, but I don't see a way to read a cookie from an HTTP GET. More knowledgeable users, or @MacroDroidDev, may know better than I, though.

If not: If your cookie value comes from somewhere else, have you tried adding a Header parameter to your HTTP POST action, with "cookie" as the Parameter Name (and the value set to the cookie value)?
 

jmlat

Member
Thank you all.
Finally did it with "http shortcuts" plugin and parsing the result in macrodroid.
I'm interresting with your solution because a similar problem. So I create POST with HTTP shortcuts.
Works well, but how do you sent result to macrodroid in order to use it?
 

ofira85

New member
I'm interresting with your solution because a similar problem. So I create POST with HTTP shortcuts.
Works well, but how do you sent result to macrodroid in order to use it?
In my http app I can save to my phone log file with the resultes...
 
Top