In case anyone else encountered this problem. You have to edit your function and check the "has return value" box. Then your return will work. After this you have to use "Call Function" again and now you have a new field for saving results.
Get Proxy from Profile to variable - Access data from HTTP-sniffer
-
I'm wondering how I can get the proxy that is saved within a profile to a variable?
There is setting "always load proxy from profile folder" in the action "Create or switch to regular profile".
This sets the proxy automatically for all following browser actions. But if I want to set this proxy e.g. to Http-client actions
or make some checks if the proxystring contains a specific string?Also is it somehow possible to get the results from the HTTP-Sniffer window (where it checks the IPs, fetches fingerprints and so on) within the script?
So I don't need to check again in the script if a proxy is from a needed country as I simply fetch the received result from the get request to ip.bablosoft.com/ip-api.com and have the needed data.Thank you for your help.
-
You can use "Filesystem" - "Read file" to get proxy information from
already saved profile in BAS. Proxy information is saved within profile
in TXT file named "proxy.txt", and it is in json format >{"server":"95.164.135.18","Port":"6551","IsHttp":true,"name":"somename","password":"somepassword"}So you can extract it from there.