Thread
:
[application] pyRadio (Pandora)
View Single Post
slvr32
2011-08-25 , 03:25
Posts: 168 | Thanked: 104 times | Joined on Feb 2008 @ California, USA
#
627
Originally Posted by
singpolyma
Is there any plan to add support for proxies, especially SOCKS proxies, to this application?
FYI, I have nothing to do with pyRadio development, and I have next to zero python experience, but I was just looking at some of the pyRadio source @ /opt/pyRadio, and noticed (I think) that 'urllib2' is being used for the http requests, rather than something like QNetworkManager (or QNetworkAccessManager???).
And I don't want to pollute this thread with off-topic tangents, but I've done just a bit of Qt/C++ development lately, which is just loosely related because my current code is using QUrl, QHttp, signals, slots, etc... and I just discovered QNetworkManager by accident, when I was looking into Diablo SDK network issues.
In any case, I just have the vaguest idea that QNetworkManager exposes some amount of proxy information, or that you might be able to check for a proxy, but I haven't gotten around to rewriting any of my http/network code (working fine on several platforms w/Qt 4.5 - 4.7, so the Diablo SDK tangent was mostly a red herring at the moment), so I can't say I'm familiar with implementation firsthand (yet).
I think that the urllib2 library is sort of a convenience for avoiding some of the typical signals/slots stuff with some of the other Qt network classes, but I'm guessing that fatalsaint may have more input on the topic.
Edit: Looks like urllib2 (depending on version?) may have proxy support...
http://www.velocityreviews.com/forum...and-https.html
http://tech.groups.yahoo.com/group/l...g/message/4208
Last edited by slvr32; 2011-08-25 at
15:44
.
Quote & Reply
|
slvr32
View Public Profile
Send a private message to slvr32
Find all posts by slvr32