Proxy support

Asked by Andrew Manson (real_ate)

Hi,

Just wondering if there is any solution for proxy support in the uploader?

If so how does one configure it?

Question information

Language:
English Edit question
Status:
Solved
For:
RescueTime Linux Uploader Edit question
Assignee:
No assignee Edit question
Solved by:
Andrew Manson (real_ate)
Solved:
Last query:
Last reply:
Revision history for this message
Elliot Murphy (statik) said :
#1

On 04/17/2009 03:01 PM, Andrew Manson (real_ate) wrote:
> New question #67776 on RescueTime Linux Uploader:
> https://answers.launchpad.net/rescuetime-linux-uploader/+question/67776
>
> Hi,
>
> Just wondering if there is any solution for proxy support in the uploader?
>
> If so how does one configure it?
>

It should respect the standard http_proxy environment variable that most
linux tools do, at least the urllib2 python library that rescuetime is
using claims to support these. I've not tested it myself, and I'm not
sure if it's more complicated if your proxy requires authentication.
It's worth trying to set HTTP_PROXY in your environment and see if it
works ok for you though.
--
Elliot Murphy | https://launchpad.net/~statik/

Revision history for this message
Andrew Manson (real_ate) (real-ate) said :
#2

I guess then I'll move this question to a bug report because my HTTP_PROXY is set correctly but still I don't have any transfer.

Revision history for this message
Budiwijaya (budiwijaya) said :
#3

I'm having difficulties using proxy too. The transfer is through standard http or httpS ?

Thank you.

Revision history for this message
Budiwijaya (budiwijaya) said :
#4

I'm testing on ubuntu 9.04.

after I export http_proxy and https_proxy, I tested with wget. wget connect to internet with proxy, so I guess the http_proxy setting is OK.
then I tried to execute rescutime_linux_uploader, fill the username and password, then check the connection with netstat,
I see a python program tried to connect to a https port,

--snip--
tcp 0 1 192.168.25.5:57010 64.34.167.26:443 SYN_SENT 9538/python
--snip--

here's my http_proxy and https_proxy:

budiw@carbon:~$ export | grep http
declare -x http_proxy="http://proxy.example.co.id:8080/"
declare -x https_proxy="https://proxy.example.co.id:8080/"

--
I replace my office domain with example.

Thank you.