{"id":442,"date":"2022-08-30T15:01:25","date_gmt":"2022-08-30T15:01:25","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2013\/11\/09\/problem-about-tcpclient-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:01:25","modified_gmt":"2022-08-30T15:01:25","slug":"problem-about-tcpclient-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/problem-about-tcpclient-collection-of-common-programming-errors\/","title":{"rendered":"problem about tcpclient-Collection of common programming errors"},"content":{"rendered":"<ul>\n<li><img decoding=\"async\" src=\"http:\/\/i.stack.imgur.com\/P1XjT.jpg?s=32&amp;g=1\" \/><br \/>\nMultiThreader<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/f257a19d6be15b18f88275fdb8bb504b?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nNikita Zernov<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/ac14814bcfc842f847af55f9b3ad55b5?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nArsen Zahray<br \/>\nc# http tcp proxy tcpclient<br \/>\nI&#8217;m trying to figure out how proxy connections work via TCP. I&#8217;ve started by downloading stacksoft library and installing Squid proxy on a remote server.Now I&#8217;m trying to connect to it via c# TcpClient.The connection is opened by the following request:CONNECT proxyjudge.iathao.com:80 HTTP\/1.1 HOST proxyjudge.iathao.comwhich fails with error code 400 (I&#8217;ve tried several variants of this, it ALWAYS fails):HTTP\/1.0 400 Bad Request Server: squid\/3.1.10 Mime-Version: 1.0 Date: Mon, 27 Aug 2012 13:25:54 GMT Content-Type: text\/html Content-Length: 3295 X-Squid-Error: ERR_INVALID_REQ 0 Vary: Accept-Language Content-Language: en X-Cache: MISS from **** X-Cache-Lookup: NONE ****:*** Connection: close&#8230;.<\/p>\n<h1>ERROR<\/h1>\n<h2>The requested URL could not be retrieved<\/h2>\n<p>&#8230;.<\/li>\n<\/ul>\n<p id=\"rop\"><small>Originally posted 2013-11-09 19:42:58. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>MultiThreader Nikita Zernov Arsen Zahray c# http tcp proxy tcpclient I&#8217;m trying to figure out how proxy connections work via TCP. I&#8217;ve started by downloading stacksoft library and installing Squid proxy on a remote server.Now I&#8217;m trying to connect to it via c# TcpClient.The connection is opened by the following request:CONNECT proxyjudge.iathao.com:80 HTTP\/1.1 HOST proxyjudge.iathao.comwhich [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-442","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/442","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=442"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/442\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=442"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=442"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=442"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}