Scripting question regarding POST data and speed
I've read the documentation and searched the forum but haven't found any answers yet, so I thought I would ask here and maybe Sven or some of the other experienced GSA script writers could help.
I'm trying to write a few scripts that use the POST data method, but I'll be feeding these my own lists of URLs and speed is my main concern. So my questions are:
I'll be happy to share some scripts with the community in the future as well, when I get a little better/faster at creating them
Thanks,
I'm trying to write a few scripts that use the POST data method, but I'll be feeding these my own lists of URLs and speed is my main concern. So my questions are:
- Is there a way to prevent GSA from loading the body of each page in my URL list? Since I don't need to parse any form elements, I just want to rapid fire the POST requests as fast as possible in the form of %targeturl% + the post values (ex: ?action=add&name=%name%&title=%image_title%&email=%email%
- Is there a way to change a script's behavior based on submission status? This would basically be the same as an IF statement. For example, if a submission is unknown, send a POST request with alternate values for post data.
I'll be happy to share some scripts with the community in the future as well, when I get a little better/faster at creating them
Thanks,
Tagged:
Comments
1. use "modify url" and "post data" in the setup section to not download anything but post directly.
2. not possible right now, might need some sample from you to add this.
I'm guessing GSA reads the entire script first and then executes everything, but just wanted to ask.
I'll test this as soon as I get time, just been really busy. Thanks again for your help.