How can route to proxy by url?

info2000

Client
Регистрация
12.02.2012
Сообщения
42
Благодарностей
1
Баллы
8
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
 

Merciless

Новичок
Регистрация
12.09.2019
Сообщения
19
Благодарностей
3
Баллы
3
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"
 

info2000

Client
Регистрация
12.02.2012
Сообщения
42
Благодарностей
1
Баллы
8
Thanks Merciless,
How do that each sub-request call to this c# code?
 

Merciless

Новичок
Регистрация
12.09.2019
Сообщения
19
Благодарностей
3
Баллы
3
Could you provide any example of using this sub-requests?
 

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)