RFC 6265 Plugin/Algorithm

General discussions about Automagic and automation in general

Moderator: Martin

Post Reply
Snify
Posts: 5
Joined: 04 May 2017 10:09

RFC 6265 Plugin/Algorithm

Post by Snify » 11 Jun 2019 07:44

Hello y'all.

This is something like a mix between a Feature Request and/or seeking for help.

Automagic provides an outstanding and stable HTTP Request Action.
However I am in need to handle cookies for the request, which should be RFC 6265 compliant.

I have read the RFC 6265 and it's not that difficult - but my time is very limited to develop this algorithm to Automagic (via Script).

I also tried plugins such as WebAlert XP - which is really good for easy to use - but lacks of some dynamics such as changing the POST parameters - plus it's a bit slow due to embedded browser transactions.

What I need is a "function", which takes the request URL and any kind of cookies, processes them and returns only the valid/scope cookies for this request.
In addition - the returned cookies for that request, should also be processed afterwards (if any cookies are returned by the HTTP request).

I have found this: https://github.com/js-cookie/java-cookie but I don't know how I could use this with Automagic (if possible)

Any help in handling cookies in Automagic, would be appreciated.

Thank you for the time to read this.


Regards.

User avatar
Martin
Posts: 4307
Joined: 09 Nov 2012 14:23

Re: RFC 6265 Plugin/Algorithm

Post by Martin » 12 Jun 2019 20:03

Hi,

Action HTTP Request already uses the default cookie handling mechanism provided by Android which states that it conforms to RFC 2965 so I assume that it should work in general.
It means that cookies set in responses of action HTTP Request are stored and the cookies are included in subsequent requests again when the scope matches.

Regards,
Martin

Post Reply