save GET,POST requests

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

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
 
i have 10 zennoposter License but support not ready to answer my question ?!
 
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".
post.png


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-}

post.png


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

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