How to change the User-Agent in a GET request

779 views
Skip to first unread message

Nimz

unread,
May 31, 2021, 6:01:05 AM5/31/21
to OWASP ZAP User Group
Hi All,
I am newbie taking the ZAP HUD tutorial.  I am stuck at the "Resend" Page. The task is:
"Select the GET request for this page in the History tab, change the User-Agent to include ZAP and then 'Replay in Browser'"
When I try to change the user-agent to "ZAP" I get an "Invalid HTML header" error. Any suggestions?

Simon Bennetts

unread,
Jun 1, 2021, 4:37:40 AM6/1/21
to OWASP ZAP User Group
Hiya,

Can you show us exactly what you are changing the request to?
It much still be valid HTML so you should just be changing the value of the User-Agent header to `ZAP`.

Cheers,

Simon

Nimz

unread,
Jun 2, 2021, 9:34:19 PM6/2/21
to OWASP ZAP User Group
Thank you Simon. I got it to work ans finished the tutorial. Must have been a typo on my side.
Reply all
Reply to author
Forward
0 new messages