Request Method: PATH how to convert c# or get / post

xirosxvi

Client
Регистрация
24.09.2019
Сообщения
20
Благодарностей
0
Баллы
1

VladZen

Administrator
Команда форума
Регистрация
05.11.2014
Сообщения
22 190
Благодарностей
5 831
Баллы
113

EtaLasquera

Client
Регистрация
02.01.2017
Сообщения
524
Благодарностей
112
Баллы
43
Here is a example of httpget.
Код:
string str = project.Variables["tokenKey"].Value;
string dt = project.Variables["getData"].Value;
string myHttp = project.Variables["myHttp"].Value;
var httpGet = ZennoPoster.HttpGet(
    myHttp+"/"+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;
 
  • Спасибо
Реакции: VladZen

lokiys

Moderator
Регистрация
01.02.2012
Сообщения
4 769
Благодарностей
1 179
Баллы
113
Here is a example of httpget.
Код:
string str = project.Variables["tokenKey"].Value;
string dt = project.Variables["getData"].Value;
string myHttp = project.Variables["myHttp"].Value;
var httpGet = ZennoPoster.HttpGet(
    myHttp+"/"+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;

[Obsolete("Use ZennoPoster.HTTP instead.")]

This link will suit you more: https://help.zennolab.com/en/v5/zennoposter/5.30.0.0/webframe.html#topic799.html
 

EtaLasquera

Client
Регистрация
02.01.2017
Сообщения
524
Благодарностей
112
Баллы
43
Ouch, we deploy on 5.16 :-)
 

xirosxvi

Client
Регистрация
24.09.2019
Сообщения
20
Благодарностей
0
Баллы
1
I thank you I succeeded thanks to your help!
 

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