Code to check if a proxy is working


Does anybody have any working code to check if an http proxy is working.

(1) I'd like to connect, see if there is a response and then close the socket. No need to actually see if it will load a page.

(2) Check if it will load a page.

Who is Participating?
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.