How to capture HTTP request in OWASP ZAP

北城以北 提交于 2020-12-12 15:36:43

问题


I need to scan some APIs that only available on HTTP protocol.

Let's say I'm testing http://example.com, I did follow commands

export http_proxy=localhost:8080
export https_proxy=localhost:8080
curl http://example.com  
<html><body>Redirecting to https://example.com/</body></html>

http://example.com is accessible however ZAP proxy always gives me a 302 Redirect response. And in the GUI, there is nothing captured by ZAP.

Capturing HTTPS APIs is working well, but how can I make it work for HTTP?

Thank you in advance.


回答1:


I'm guessing that you've got the HUD enabled - that always redirect to HTTPS. Thats explained in the tutorial that would have been linked to when you you started using ZAP. You can turn the HUD off via a button on the toolbar or a checkbox on the relevant Quick Start tab.



来源:https://stackoverflow.com/questions/59666603/how-to-capture-http-request-in-owasp-zap

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!