A
A
Alexander Borzunov2011-02-10 17:05:34
Python
Alexander Borzunov, 2011-02-10 17:05:34

Communicate with http proxy via sockets in Python?

The problem is simple - I want to send a POST request through an http proxy in Python on sockets, but either various SocketError errors occur, or the code simply hangs on sending (send / sendall) or receiving (recv / recvall) data.

Tell me, what is the reason for this behavior (or, even better, advise a working option)?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Rulin, 2011-02-10
@Rulin

and curl did not please?

E
equand, 2011-02-10
@equand

What is an HTTP proxy? In theory, they should pass POST without problems ... Perhaps you send without checking the sending of data? Send at the end \r\n?
Many questions arise, show the code.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question