pyOwnCloud
pyOwnCloud copied to clipboard
Request: Proxy Support
Would like to use at work, and there is a pesky proxy in the way.
Thanks!
Do you have csync.py working anywhere? (I'm just curious).
as for proxy support... I haven't any idea what I have to do to make that work.... I'll look into it a little.
Have csync.py working now under: Ubuntu 12.10 64-bit Archlinux 64-bit Archlinux 32-bit
I managed to hose up my Fedora 17 box outside the firewall, so I cannot test Fedora 17 at this point.
Thanks for looking into the proxy thing. :)
Can you tell me what the values in the owncloud-client config file are for the proxy information?
i.e. if you run Mirall (the Qt owncloud client for ownCloud) with a machine with a proxy, can you give me the information in the owncloud.cfg file that has the proxy information in it?
(That way I can use the same values as they do, for interoperability).
I think I can add it easily enough... provided the library behaves for me.
For me / a developer: (so I don't have to go finding the process in the Mirall code again).
after the csync_init() call and before the update call, do this for the proxy information: csync_set_module_property(csync, "csync_context", csync); csync_set_module_property(csync, "proxy_type", (char*) proxyTypeToCStr(_proxy.type()) ); csync_set_module_property(csync, "proxy_host", _proxy.hostName().toUtf8().data() ); csync_set_module_property(csync, "proxy_port", &proxyPort ); csync_set_module_property(csync, "proxy_user", _proxy.user().toUtf8().data() ); csync_set_module_property(csync, "proxy_pwd" , _proxy.password().toUtf8().data() );
Sure:
[proxy]
type=3
host=127.0.0.1
port=8888
user=
pass=@ByteArray()
I have a local proxy server which will talk to the corp proxy server....keeps client configs cleaner. :)
d
Oh FAIL SAUCE. They put the proxy in a different section in the config file. OUCH. Okies. GRR