How can route to proxy by url?

  • Автор темы Автор темы info2000
  • Дата начала Дата начала

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
 
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"
 
Thanks Merciless,
How do that each sub-request call to this c# code?
 
Could you provide any example of using this sub-requests?
 

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