Advanced HTTP Handling - e.g. AutoLogin
Posted: 01 Jul 2019 08:12
Hello all,
Automagic currently has a good and stable HTTP Request Action with some already nice features.
However, for my needs (and maybe for others as well), it is not quite enough (yet).
At the moment, there is a "bug", which, if it gets solved, can open up many opportunities from scratch.
With this, you can already program flows, which can let you automatically login to a website, upload a file to a webserver and/or parse your desired value (which can be tracked for changes, etc.)
Examples:
For easier access to such a feature, there is already a plugin called WebAlert , which tracks your login via a webview and stores/follows all your submits and requests.
There are 2 issues with this:
1. It is slow. Due to processing via the WebView - it eats resources like time, internet traffic (due to images/scripts load), etc.
2. It won't let you dynamically change the form item names. (Some sites have dynamic form item names, but are always in the same order (index))
Good thing is: It is easy to use and handles all the javascript/cookies/form stuff.
So my feature request is actually to have a WebView available for the user (to login, select the element you want to track, etc.) - and later be able to send only native HTTP Requests - thus, images, etc. don't need to load.
Also if there's the need and time - adding some script functions/procedures which can handle HTML Source / Cookies such as parsing form(s)/item(s)/values/etc. by Index and/or name.
Thanks for reading =)
Automagic currently has a good and stable HTTP Request Action with some already nice features.
However, for my needs (and maybe for others as well), it is not quite enough (yet).
At the moment, there is a "bug", which, if it gets solved, can open up many opportunities from scratch.
With this, you can already program flows, which can let you automatically login to a website, upload a file to a webserver and/or parse your desired value (which can be tracked for changes, etc.)
Examples:
- Login to paypal with your credentials - parse your current balance - show the balance in a widget / get notification about changes / make payments / etc ...
- Track a sale listing and get notified when the price changes or stock has been refilled
- Login to any site and check for messages, etc.
- Login to any site and submit a message/picture/anything...
- Check weather
- Check anything!
- Your Webservice doesn't have an API? No problem, use HTTP Requests yourself =)
- Many more purposes...
For easier access to such a feature, there is already a plugin called WebAlert , which tracks your login via a webview and stores/follows all your submits and requests.
There are 2 issues with this:
1. It is slow. Due to processing via the WebView - it eats resources like time, internet traffic (due to images/scripts load), etc.
2. It won't let you dynamically change the form item names. (Some sites have dynamic form item names, but are always in the same order (index))
Good thing is: It is easy to use and handles all the javascript/cookies/form stuff.
So my feature request is actually to have a WebView available for the user (to login, select the element you want to track, etc.) - and later be able to send only native HTTP Requests - thus, images, etc. don't need to load.
Also if there's the need and time - adding some script functions/procedures which can handle HTML Source / Cookies such as parsing form(s)/item(s)/values/etc. by Index and/or name.
Thanks for reading =)