Get Proxy from Profile to variable - Access data from HTTP-sniffer

Support
  • 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.

  • @GaG Thank you very much for your appreciated help. That way it works :)

  • For your second question read this post from @Fox ,
    maybe its what you need. Its in Russian, but you can
    use translator. There is an example script too >

    https://community.bablosoft.com/post/65441