Testing help needed: people behind proxies

Here's the place for discussion related to coding in FreeCAD, C++ or Python. Design, interfaces and structures.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
User avatar
chennes
Veteran
Posts: 3880
Joined: Fri Dec 23, 2016 3:38 pm
Location: Norman, OK, USA
Contact:

Testing help needed: people behind proxies

Post by chennes »

I need some assistance testing a new piece of code that is supposed to enable the Addon Manager to download files from behind a proxy, including NTLM proxies (which were not previously supported). I need some assistance testing the code from people who are behind a proxy.

I've coded it so that you can test it standalone: you need to have PySide2 installed, and especially the QtNetwork package (on linux this is the package python3-pyside2.qtnetwork), but you don't have to compile FreeCAD if you don't want to. It's just a single file that is run via the command line with

Code: Select all

python3 NetworkManager.py
(or whatever your local equivalent is). The file is here:
https://github.com/chennes/FreeCAD/blob ... Manager.py

When you run it from the command line, it should prompt you for your proxy setup, then try to download three small files from various places on the internet. If you don't get any error messages, it worked!

For the record, the files it's fetching are:

Code: Select all

    urls = ["https://api.github.com/zen", 
            "http://climate.ok.gov/index.php/climate/rainfall_table/local_data", 
            "https://tigerweb.geo.census.gov/arcgis/rest/services/TIGERweb/AIANNHA/MapServer",
            ]
Chris Hennes
Pioneer Library System
GitHub profile, LinkedIn profile, chrishennes.com
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Testing help needed: people behind proxies

Post by Kunda1 »

Are there any free proxies that we can use to simulate this test ?
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
User avatar
chennes
Veteran
Posts: 3880
Joined: Fri Dec 23, 2016 3:38 pm
Location: Norman, OK, USA
Contact:

Re: Testing help needed: people behind proxies

Post by chennes »

I'm not sure, I've never used one so I don't really know how they work. Presumably I could also install squid or something on a local linux box, I think there is a way to set it up that it requires authentication, too.
Chris Hennes
Pioneer Library System
GitHub profile, LinkedIn profile, chrishennes.com
Post Reply