Routing python automation script traffic via zap proxy

353 views
Skip to first unread message

Chandirasekaran Dhakshinamoorthy

unread,
Oct 6, 2021, 8:56:46 AM10/6/21
to OWASP ZAP User Group
Hi All,

For API discovery I am trying to re-using the existing service automation scripts which uses python requests module,  In the python request module I am passing verify =False and then proxies parameter too i have set with the zap proxy details, But when I run the api automation script , I am getting the below error in the console,  So is there any standard guidelines for routing script based API traffic 

POST /: SSLSyscallError(5, 'Some I/O error occurred (_ssl.c:1123)

Regards
Chandru 


Chandirasekaran Dhakshinamoorthy

unread,
Oct 6, 2021, 12:24:51 PM10/6/21
to OWASP ZAP User Group
My Sample python script whose traffic I am trying to route through ZAP proxy 
import requests

proxies = {
            "http": "http://localhost:8087",
            "https": "https://localhost:8087",
        }

# Create the session and set the proxies.
s = requests.Session()
s.proxies = proxies
s.verify = False

# Make the HTTP request through the session.

(Caused by SSLError(SSLSyscallError(5, 'Some I/O error occurred (_ssl.c:1123)')))

Chandirasekaran Dhakshinamoorthy

unread,
Oct 7, 2021, 12:56:02 AM10/7/21
to OWASP ZAP User Group

This is solved by simply changing 

proxies = {
            "http": "http://localhost:8087",
            "https": "http://localhost:8087",
        }

Simon Bennetts

unread,
Oct 7, 2021, 3:04:09 AM10/7/21
to OWASP ZAP User Group
Thanks for letting us know :)
Reply all
Reply to author
Forward
0 new messages