How to setup STK to use a proxy

How to setup STK to use a proxy

Postby bart15 » 25 Sep 2014, 19:02

Hi all.

Running STK 0.8.1 on debian wheezy. My children can't connect to the internet without passing throught the proxy (squid + dansguardian).

The problem is that they can't get the add-ons (kart and race) without access to the internet. How can I set up the proxy parameters in STK.

Thanks for your help.
bart15
 
Posts: 3
Joined: 14 May 2012, 23:18

Re: How to setup STK to use a proxy

Postby samuncle » 26 Sep 2014, 20:02

Unfortunately I think it isn't possible. But it should be implemented. Maybe we should open a ticket so the upcoming version will be able to connect through a proxy.
Image
User avatar
samuncle
STK Moderator
 
Posts: 752
Joined: 16 Mar 2010, 21:28

Re: How to setup STK to use a proxy

Postby hiker » 27 Sep 2014, 10:33

Yes please, open a ticket, and tell us how you specify the proxy in your distro - I assume the settings are in some environment variables?

Cheers,
Joerg
hiker
 
Posts: 1435
Joined: 07 Dec 2009, 12:15
Location: Melbourne, Australia

Re: How to setup STK to use a proxy

Postby acme_pjz » 27 Sep 2014, 15:20

I think in most Linux it uses "http_proxy" environment variable, or "HTTP_PROXY", not sure... and in Windows you need to call some API to get proxy setting of Internet Explorer. IMHO the easiest way is let the user input proxy settings. ;) Assuming you are using libcurl for download, it is easy to set proxy using functions in libcurl :)
Some of my open source games on GitHub
User avatar
acme_pjz
 
Posts: 665
Joined: 10 Dec 2009, 15:32
Location: PeeKing, China

Re: How to setup STK to use a proxy

Postby hiker » 08 Oct 2014, 06:49

acme_pjz {l Wrote}:I think in most Linux it uses "http_proxy" environment variable, or "HTTP_PROXY", not sure... and in Windows you need to call some API to get proxy setting of Internet Explorer. IMHO the easiest way is let the user input proxy settings. ;) Assuming you are using libcurl for download, it is easy to set proxy using functions in libcurl :)

According to the libcurl doc, it should not be necessary to explicitly set proxy parameters, libcurls takes http_proxy etc into account (http://curl.haxx.se/libcurl/c/CURLOPT_PROXY.html).

bart15, can you confirm that you have https_proxy defined (not only http)? And which version of libcurl is installed on your system?

Cheers,
Joerg
hiker
 
Posts: 1435
Joined: 07 Dec 2009, 12:15
Location: Melbourne, Australia

Who is online

Users browsing this forum: No registered users and 1 guest