login about faq

In the newesst version:

socket.HttpProxyHostname = "127.0.0.1"; socket.HttpProxyPort = 8888;

//it doesn't works; (when fiddler is the proxyserver at 9.5.0.56 version)

socket.SocksHostname = "127.0.0.1"; socket.SocksPort = 1080; socket.SocksVersion = 5;

//it works; (ccproxy server is the proxyserver at 9.5.0.56 version)

In the 9.3.2 version above code all works well;

why? how to solve this problems,it is important to my program;

asked Mar 21 at 05:59

ryon's gravatar image

ryon
102


Try this new build:

32-bit Download: http://www.chilkatsoft.com/download/preRelease/ChilkatDotNet45-9.5.0-win32.zip

64-bit Download: http://www.chilkatsoft.com/download/preRelease/ChilkatDotNet45-9.5.0-x64.zip

Let's focus on one thing at a time. I'm only interested in the SOCKS proxy problem for now..

link

answered Mar 22 at 19:31

chilkat's gravatar image

chilkat ♦♦
11.8k316358421

SOCKS proxy works well. but HTTP proxy doesn't work on socket component.

link

answered Mar 22 at 19:57

ryon's gravatar image

ryon
102

I'm looking into the problem.

I installed CCProxy, and then worked to get it working with FireFox. At first, nothing worked. Two changes were required for Firefox to use the local proxy:

  1. In CCProxy, go to Options. Then for the "Local IP Address", uncheck "Auto Detect" and select the local IP address, such as "192.168.1.100" in the dropdown, and then mark the checkbox to the right of it.
  2. In FireFox, don't use "localhost" or "127.0.0.1". Instead use "192.168.1.100" (or whatever the local IP address of the computer may be).

Chilkat behaves the same. You cannot use "localhost" or "127.0.0.1". You must use the local IP address (such as 192.168.1.100). I'm working to see if it's possible to make "locahost" or "127.0.0.1" work (where Firefox does not)..

I suspect the resolution for CCProxy will also resolve the HTTP proxy issues..

link

answered Mar 21 at 21:35

chilkat's gravatar image

chilkat ♦♦
11.8k316358421

edited Mar 21 at 21:56

Please post your programming language and operating system so I can provide a new build if necessary..

(Mar 21 at 21:57) chilkat ♦♦

In my program, the same code seems to work different on the different version. The older is ok, but the newest is not. The Proxy Servers are the same ones (ccproxy on multi-ips server, fidder in local).Your response just focurs on the browser configuration, but when i use firefox by proxy , it works. so it must be the bug in the newest version. Sugguestion: Visit any webpage with chilkat socket bypass fiddler, you can find the bug. By the way, the part of chilkat-http component works well in http proxy mode. Just the chilkat-socket can't

thanks.

link

answered Mar 21 at 22:18

ryon's gravatar image

ryon
102

Please post your programming language and operating system so I can provide a new build if necessary..

(Mar 22 at 14:53) chilkat ♦♦

I work on win10 + vs2012 +.net4.5 + C#.And use fiddler to capture the http stream between webserver and client with chilkat socket componet. fiddler seems to be a proxyserver when i use 127.0.0.1:8888 to be the ip:port in chilkat-socket. In chilkat socket component, it doesn't work on the newest version(9.5.0.56) ,but the older(9.3.2) works. thanks.

link

answered Mar 22 at 19:21

ryon's gravatar image

ryon
102

edited Mar 22 at 19:26

And the chilkat-http component works well when i need to use http-proxy method on the newest version.,but chiklat-socket component can't. that may be the bug need fix. thanks

link

answered Mar 22 at 19:25

ryon's gravatar image

ryon
102

-1

it doesn't work by your new build; code as follow

        Socket socket = new Socket();
        bool success;
        success = socket.UnlockComponent("Anything for 30-day trial");
        if (success != true)
        {
            Console.WriteLine(socket.LastErrorText);
            return;
        }

        socket.HttpProxyHostname = "127.0.0.1";
        socket.HttpProxyPort = 8888;

        string hostname = "ip38.com";
        bool ssl = false;
        int maxWaitMillisec = 20000;
        success = socket.Connect(hostname, 80, ssl, maxWaitMillisec);
        if (success != true)
        {
            Console.WriteLine(socket.LastErrorText);
            return;
        }

        socket.MaxReadIdleMs = 10000;
        socket.MaxSendIdleMs = 10000;
        success=socket.SendString("GET / HTTP/1.1\r\nHost:www.ip38.com\r\n\r\n");
        string receivedMsg;
        receivedMsg = socket.ReceiveUntilMatch("</html>");
        if (receivedMsg == null)
        {
            Console.WriteLine(socket.LastErrorText);
            return;
        }
        socket.Close(20000);

        Console.WriteLine(receivedMsg);
link

answered Mar 22 at 19:50

ryon's gravatar image

ryon
102

-1

Let's focus on one thing at a time. I'm only interested in the SOCKS proxy problem for now..
Let's focus on one thing at a time. I'm only interested in the SOCKS proxy problem for now..
Let's focus on one thing at a time. I'm only interested in the SOCKS proxy problem for now..
Let's focus on one thing at a time. I'm only interested in the SOCKS proxy problem for now..
Let's focus on one thing at a time. I'm only interested in the SOCKS proxy problem for now..
Let's focus on one thing at a time. I'm only interested in the SOCKS proxy problem for now..

link

answered Mar 22 at 19:52

chilkat's gravatar image

chilkat ♦♦
11.8k316358421

edited Mar 22 at 19:52

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×186
×60
×24

Asked: Mar 21 at 05:59

Seen: 792 times

Last updated: Mar 23 at 12:07

powered by OSQA