How to Add Parameters for GET Action?

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

Cyrix

Client
Регистрация
16.12.2011
Сообщения
401
Реакции
12
Баллы
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.
 
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
yes, you can add your own parameters in More tab>Headers>User settings.
 
  • Спасибо
Реакции: Cyrix
Thanks for the great info.
 

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