save GET,POST requests

rau

Новичок
Регистрация
11.11.2018
Сообщения
2
Благодарностей
0
Баллы
1
Hello,
when i open New Tap for example Fb.com its GET request how to save Header of my GET or Post Requests?

i can see Header in window > traffic ,But i cant save it
 

rau

Новичок
Регистрация
11.11.2018
Сообщения
2
Благодарностей
0
Баллы
1
i have 10 zennoposter License but support not ready to answer my question ?!
 

lokiys

Moderator
Регистрация
01.02.2012
Сообщения
4 799
Благодарностей
1 187
Баллы
113

VladZen

Administrator
Команда форума
Регистрация
05.11.2014
Сообщения
22 413
Благодарностей
5 900
Баллы
113
  • Спасибо
Реакции: rau

EtaLasquera

Client
Регистрация
02.01.2017
Сообщения
526
Благодарностей
112
Баллы
43
i have 10 zennoposter License but support not ready to answer my question ?!
You can read help before rage.

As a good girl I'll try help your question because I'm doing a GET request at this time.
In GET block, use your defined variables or constants in URL and referer.

In load, put "As file + headers" (if you are trying to receive a file, or simple headers if you want to save the answer of your GET).

You can save the result in your own variable instead of "Variable1".


Here is a sample of the GET request of upper picture:
Код:
HTTP/1.1 200 OK
Date: Sat, 17 Nov 2018 09:55:13 GMT
Server: Apache-Coyote/1.1
X-OneAgent-JS-Injection: true
Content-Disposition: attachment;filename=InformeRendimentos.pdf
Content-Type: application/json
Content-Length: 35343
Set-Cookie: dtCookie==3=srv=5=sn=C0A9BEF4189F1E311F761321628FA256=perc=100000=ol=0=mul=1; Path=/; Domain=.vr.com.br
X-UA-Compatible: IE=edge


c:\temp\informerendimentos(1).pdf
*C:\Temp is a browser settings "Download to"

To do that job I must add aditional settings in tab "More", changed headers to "User settings" and add following lines to "User Agent"
cookie: {-Variable.cookie-}
Accept: application/json, text/plain, */*
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
access-token: {-Variable.accesstoken-}
cnpjEC: {-Variable.cnpjEC-}



To retreive "cookies" you must write a c# code:
Код:
return instance.GetCookie("vr.com.br", true); //vr.com.br is domain where I'm doing GET request
 
Последнее редактирование:
  • Спасибо
Реакции: rau

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