Sign in to follow this  
Followers 0
MotionFlex

Need help connecting to proxy

5 posts in this topic

Hi,

Basically, what i would like to do is connect to a proxy switcher which is on the local host (127.0.0.1:PORT). Using that proxy I would connect to my destination. For example...

$socket = Connect($IP, $Port)
TCPSend($socket, "...")

How would I add support for the proxy switcher? Just the theory should do.

Thanks

Share this post


Link to post
Share on other sites



Have you tried by simply doing what you described?

$socket = Connect("127.0.0.1", "The port for your proxy") 
TCPSend($socket, "...")

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Have you tried by simply doing what you described?

$socket = Connect("127.0.0.1", "The port for your proxy") 
TCPSend($socket, "...")

Jos

 

I see that would obviously be the first stage. The problem is how do I follow the packet to the destination which is 72.-.-.- on port 5555. I know if I was connecting to a website I could use the HTTP headers but I need to connect to a server directly after connecting to the proxy.

Sorry for the bad explaination.

Share this post


Link to post
Share on other sites

Ok, so you want to specify the real target host's IP address and port, but want the request to go through a Proxy Server, like the InetGet() uses the HttpSetProxy() settings.

Not sure how easy that is to program yourself.

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Ok, so you want to specify the real target host's IP address and port, but want the request to go through a Proxy Server, like the InetGet() uses the HttpSetProxy() settings.

Not sure how easy that is to program yourself.

Jos

 

Yep, pretty much like how you are able to do it using a browser. Well...Now I have somewhere to start. Thanks anyways.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0