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

  • Автор темы Автор темы xirosxvi
  • Дата начала Дата начала
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
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
 
Ouch, we deploy on 5.16 :)
 
I thank you I succeeded thanks to your help!
 

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