How to Add Parameters for GET Action?

Cyrix

Client
Регистрация
16.12.2011
Сообщения
390
Благодарностей
11
Баллы
18
Where in the GET action I can specify parameters (equivalent to the -H "AAA: BBB" in curl)?

I can't see any input boxes for that.

94154


Thanks.
 

EtaLasquera

Client
Регистрация
02.01.2017
Сообщения
524
Благодарностей
112
Баллы
43
Sometimes you need to do it in C#:
Код:
string str = project.Variables["tokenKey"].Value;
string dt = project.Variables["getData"].Value;
string api = project.Variables["api"].Value;
var httpGet = ZennoPoster.HttpGet(
    "api+dt+"/"+dt,
     "",
    "UTF-8",
    ZennoLab.InterfacesLibrary.Enums.Http.ResponceType.BodyOnly,
    999999999,
    "",
    "",
    false,
    0, AdditionalHeaders: new []{
        "Cache-control:no-cache",
        "Accept:application/x-www-form-urlencoded",
        "Connection:Keep-Alive",
        "Keep-Alive:timeout=5, max=100",
        "Authorization: Bearer "+str});
return httpGet;
I think newest versions you can add parameters here:
94155
 
  • Спасибо
Реакции: Cyrix

VladZen

Administrator
Команда форума
Регистрация
05.11.2014
Сообщения
22 241
Благодарностей
5 848
Баллы
113
yes, you can add your own parameters in More tab>Headers>User settings.
 
  • Спасибо
Реакции: Cyrix

Cyrix

Client
Регистрация
16.12.2011
Сообщения
390
Благодарностей
11
Баллы
18
Thanks for the great info.
 

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