Sauce Labs Customer Idea Portal

Submit an idea and make Sauce Labs even better!

Add a command line flag for redirect doamins

For some of the use cases, we need Sauce connect proxy to redirect the requests received on certain source domains to a target domain. Because the source domain is a fake domain that our DNS server can not resolve. 

 

Please add a new command line flag like:

--redirect-domains <source_domains> <target_domain>

 

Please support wild cards in the source domain names.

 

Example:

--redirect-domains *.lightning.*   test,sample.com

 

 As Sauce connect proxy is already interpreting domains to support other existing command line flags like below, this is easy to achieve on the Sauce connect proxy side:

--no-ssl-bump-domains 
--direct-domains 
  • Guest
  • Sep 30 2019
  • Will not implement
  • Attach files
  • Jean Sandberg commented
    October 17, 2019 22:23

    Thank you Venkata!

    Jean

  • Guest commented
    October 17, 2019 22:12

    Thanks to Aaron Evans. 

    We are able to achieve this functionality by using Browser Mob proxy where we can define domain rules.

    We can pass the browsermob proxy  via a pac file to sauce connect proxy.

     

    Please refer to the Git hub  - https://github.com/sauceaaron/saucelabs-browsermob-example

  • Jean Sandberg commented
    October 17, 2019 20:41

    Venkata,

    Thank you for submitting this in Aha! I know we had some suggestions via a separate thread and would be curious to know the outcome?

    Thanks,

    Jean