qwj/python-proxy

HTTPS request

sdv75 opened this issue · 0 comments

sdv75 commented

Helo.
I have code

import asyncio, pproxy

async def test_tcp(proxy_uri):
    conn = pproxy.Connection(proxy_uri)
    reader, writer = await conn.tcp_connect('www.google.com', 443)
    writer.write(b'GET / HTTP/1.1\r\n\r\n')
    data = await reader.read(1024*16)
    print(data.decode())

asyncio.run(test_tcp('ss://aes-256-cfb:password@remote_host:remote_port'))

I want to make a request https to the 443 port. But I have an empty response.
How can I make a request with https to the 403 port?
Also, I am interested in requests to the SMTP server (SSL and STARTTLS)