Hi, Haven't considered opening that path. It was indeed a function and returned among other things the proxy that jmeter could use.
Thank you! -A On Tue, Dec 3, 2019 at 7:58 PM Felix Schumacher < [email protected]> wrote: > > Am 03.12.19 um 16:55 schrieb Adrian Speteanu: > > Hi, > > > > Not sure how to configure JMeter to use a proxy server when it has a > > slightly different format (<proxy_host>/<autoconfig_path>). > > I've read > https://jmeter.apache.org/usermanual/get-started.html#proxy_server > > And by the looks of the UI, it seems like the user can only set a server, > > port, username and password in order to configure that proxy (I don't > even > > need a username). > > > > The browsers, firefox / chrome / edge, are set to autoconfigure the proxy > > from http://<proxy_host>/<autoconfig_path> and it just works. > > > > Any suggestions on how to deal with these types of situations? > > What you are describing it the auto configuration protocol for browsers. > You point your browser configuration to a special file that contains > rules on which way a browser should reach a resource (by proxy or direct). > > JMeter is not a browser and currently has - to my knowledge - no builtin > support for such a rules file (which is basically a JavaScript function > that gets called with the url and the host to be visited and returns the > means of reaching the destination). > > What you can do, is to get the config file by hand and look at the > proxies that are mentioned in there. Than you configure JMeter using > those values. > > Say, your config url returns a file with a following content: > > function FindProxyForURL(url, host) { > if (isInNet(host, "10.0.0.0", "255.0.0.0")) { > return "DIRECT"; > } > return "PROXY proxy.example.invalid:8080"; > } > > then you would use proxy.example.invalid as the proxy host and 8080 as > the proxy port, if you want to reach hosts outside of 10.0.0.0/8. > > Hope this helps > > Felix > > > > > For the record, I've already tried pasting it all in the server name > field > > and it didn't work. > > > > Thanks in advance, > > -Adrian > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
