Click here to Skip to main content
14,488,995 members
Rate this:
Please Sign up or sign in to vote.
See more:
I am writing a proxy client program and
after sending CONNECT SHOWIP.COM:80
the receive function IS STUCK.

i am using Advanced Onion Router to in my program connect to
and then connect to for example.

download source code here:

the problem is the receive (winsock function in my class) hangs the connection.

i want to make anonymous connection to website and get some headers
and download document.
but for some reason i am doing something wrong i think.

can someone please help me.
thank you.

What I have tried:

add spaces to HTTP1.1/r/n/r/n/r/n did not work for me.
The send fucntion works but the receive function is hanging.
Updated 30-May-19 20:51pm
KarstenK 31-May-19 4:33am
search for some winsock sample code to see the correct usage. Winsock is often hanging when not properly used. :-O

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

Well, you didn't show your code so it is difficult to help you. I suggest you to:
  • Use the debugger to see why your receiving routine hangs.
  • Independently test your HTTP communication using a freely available HTTP client.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100