Giter VIP home page Giter VIP logo

socksipy-branch's People

Watchers

 avatar

socksipy-branch's Issues

Does not work right with requests module

Was trying to use wrapmodule with the "requests" module, got an interesting 
error.


Python 2.7.3 (default, Sep 26 2012, 21:51:14) 
[GCC 4.7.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import socks
>>> import requests
>>> socks.setdefaultproxy(socks.PROXY_TYPE_SOCKS5, 'localhost', 9050)
>>> socks.wrapmodule(requests)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "socks.py", line 107, in wrapmodule
    module.socket.socket = socksocket
AttributeError: 'module' object has no attribute 'socket'
>>>

Is there a fix for this? Not sure if it was a requests bug or a socks bug, so 
reported to both.

Original issue reported on code.google.com by [email protected] on 27 Jan 2013 at 2:43

Installing with easy_install fails

$ easy_install SocksiPy-branch
Searching for SocksiPy-branch
Reading http://pypi.python.org/simple/SocksiPy-branch/
Reading http://code.google.com/p/socksipy-branch/
Best match: SocksiPy-branch 1.02
Downloading 
http://socksipy-branch.googlecode.com/files/SocksiPy-branch-1.02.tar.gz
Processing SocksiPy-branch-1.02.tar.gz
error: Permission denied <built-in function listdir> 
/var/folders/tQ/tQt39yC8EKS4083j2vvtRU+++TI/-Tmp-/easy_install-mkq8gT/SocksiPy-b
ranch-1.02

"ls -ld 
/var/folders/tQ/tQt39yC8EKS4083j2vvtRU+++TI/-Tmp-/easy_install-mkq8gT/SocksiPy-b
ranch-1.02" displays the permissions as d---------.

Installing with pip succeeds, though.

Original issue reported on code.google.com by [email protected] on 4 Nov 2010 at 11:45

Project status

Is this project dead? I have patches waiting, and if it is not being developed 
nor I being able to get access to the project, I will be forced to branch it 
yet again :(

Original issue reported on code.google.com by [email protected] on 9 Apr 2011 at 4:33

socks block thread ?

What steps will reproduce the problem?
1. socks block thread


it was false in 5 thread fist :

ip: 67.240.128.141:35417#### whatismyip.com: 67.240.128.141
ip: 98.15.184.74:41829#### whatismyip.com: 67.240.128.141
ip: 69.120.210.254:22619#### whatismyip.com: 67.240.128.141
ip: 70.189.8.63:7981#### whatismyip.com: 67.240.128.141
ip: 71.194.91.161:4475#### whatismyip.com: 67.240.128.141

http://pastebin.com/ndvhrrJa

i can't solve it

thanks
[email protected]

Original issue reported on code.google.com by [email protected] on 10 Feb 2011 at 10:02

SSL and proxy chaining support - merge or fork?

Hi! Thanks for keeping SocksiPy alive!

I wanted to let you know that I have added proxy chaining and TLS/SSL to a 
local fork of Socksipy. It's a pretty large change, so I was wondering if you 
guys are interested in merging my work into this project or whether I should 
keep it as a fork and give it a new name?

See: http://pagekite.net/wiki/Floss/PySocksipyChain/

It's still in active development, but I'm working on packaging code that 
depends on it so I am trying to make up my mind on naming relatively soonish.

Thanks!

Original issue reported on code.google.com by [email protected] on 24 Jul 2011 at 8:18

HTTP Proxy Authentication

What steps will reproduce the problem?
1. setdefaultproxy(PROXY_TYPE_HTTP,"IP",12345,True,"USERNAME","PASSWD

What is the expected output? What do you see instead?
Can you support HTTP Proxy Authentication? I understand the original version is 
not supported, but it would be really nice if your version support it. Right 
now, I got:
  File "socks.py", line 378, in connect
    self.__negotiatehttp(destpair[0], destpair[1])
  File "socks.py", line 344, in __negotiatehttp
    raise HTTPError((statuscode, statusline[2]))
 socks.HTTPError: (407, 'Proxy Authentication Required').

Thanks so much.
What version of the product are you using? On what operating system?
svn read only branch

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 12 Oct 2010 at 2:41

Patch to support restrictive proxies

Attached is a patch which adds support for proxies which do not allow tunneling 
for standard HTTP traffic. It adds a "PROXY_TYPE_HTTP_NO_TUNNEL" type and fails 
back to "PROXY_TYPE_HTTP" for SSL requests.

Thanks for carrying on with the SocksiPy torch!


Original issue reported on code.google.com by [email protected] on 11 Aug 2010 at 4:53

Attachments:

Possible infinite loop in _negotiatehttp

In _negotiatehttp, the following loop may run indefinetly:

# We read the response until we get the string "\r\n\r\n"
resp = self.recv(1)
while resp.find("\r\n\r\n".encode()) == -1:
    resp = resp + self.recv(1)

If the server doesn't send the expected data or the connection breaks, this 
loop will never end. A possible solution may be the following:


# We read the response until we get the string "\r\n\r\n"
resp = self.recv(1)
if not resp:
    raise GeneralProxyError((0, "connection closed unexpectedly"))
while resp.find("\r\n\r\n".encode()) == -1:
    chunk = self.recv(1)
    if not chunk:
        raise GeneralProxyError((0, "connection closed unexpectedly"))
    resp = resp + chunk

Original issue reported on code.google.com by [email protected] on 11 Nov 2011 at 11:35

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.