I info2000 Client Регистрация 12.02.2012 Сообщения 42 Благодарностей 1 Баллы 8 04.10.2019 #1 How can route to a proxy A if url contains .mp4 or to proxy B for the rest? There's some way in zenno or with external tool? Thanks
How can route to a proxy A if url contains .mp4 or to proxy B for the rest? There's some way in zenno or with external tool? Thanks
M Merciless Новичок Регистрация 12.09.2019 Сообщения 19 Благодарностей 3 Баллы 3 05.10.2019 #2 You could try to do this with C# code. C#: if(project.Variables["YourUrlVariableWithMP4"].Value.Contains(".mp4")) { project.Variables["UsingProxy"].Value = ProxyA } else { project.Variables["UsingProxy"].Value = ProxyB } And you need to set "UsingProxy" variable for every request or in action block "Set Proxy"
You could try to do this with C# code. C#: if(project.Variables["YourUrlVariableWithMP4"].Value.Contains(".mp4")) { project.Variables["UsingProxy"].Value = ProxyA } else { project.Variables["UsingProxy"].Value = ProxyB } And you need to set "UsingProxy" variable for every request or in action block "Set Proxy"
I info2000 Client Регистрация 12.02.2012 Сообщения 42 Благодарностей 1 Баллы 8 08.10.2019 #3 Thanks Merciless, How do that each sub-request call to this c# code?
M Merciless Новичок Регистрация 12.09.2019 Сообщения 19 Благодарностей 3 Баллы 3 11.10.2019 #4 Could you provide any example of using this sub-requests?