David Jack Wange Olrik Posted November 16, 2014 Share Posted November 16, 2014 Hi, A lot of workflows are not working when being used behind a proxy. After some debugging it seems that you are just passing the proxy value from the system preferences, alas this will not work with a lot of languages and programs as the correct format for the http_proxy and https_proxy environment variables includes the protocol like so: http_proxy=http://username:password@proxy:port https_proxy=http://username:password@proxy:port And for the system proxy to work, only an ip or a hostname can be specified. I don't know of any way that you can obtain the correct protocol prefix from the system. Prefixing with http:// should work in most(but not all) cases as most proxies are run on a non secure port. If you can't find a way to get the prefix from the system, then you have to connect to the proxy and detect it there. -- Best regards,David Jack Wange Olrik <david@olrik.dk> http://david.olrik.dkGnuPG fingerprint 4171 FCB3 EE86 6A03 B436 5AED 5F41 087D 7AB1 A4B5["The first rule of Perl club is You do not talk about Perl club"] Using v2.5.1 (308) Link to comment Share on other sites More sharing options...
Andrew Posted November 17, 2014 Share Posted November 17, 2014 After some debugging it seems that you are just passing the proxy value from the system preferences, alas this will not work with a lot of languages and programs as the correct format for the http_proxy and https_proxy environment variables includes the protocol like so: http_proxy=http://username:password@proxy:port https_proxy=http://username:password@proxy:port And for the system proxy to work, only an ip or a hostname can be specified. I don't know of any way that you can obtain the correct protocol prefix from the system. Prefixing with http:// should work in most(but not all) cases as most proxies are run on a non secure port. Interesting, I wasn't aware of this. As I don't want Alfred to be discovering the proxies, I may add an option along side the proxy option to say prefix http if missing. Link to comment Share on other sites More sharing options...
David Jack Wange Olrik Posted November 17, 2014 Author Share Posted November 17, 2014 Interesting, I wasn't aware of this. As I don't want Alfred to be discovering the proxies, I may add an option along side the proxy option to say prefix http if missing. Alfred wouldn't be discovering the proxy, just checking to see if it's http or https - but your proposed solution would work for me =) Link to comment Share on other sites More sharing options...
Andrew Posted November 17, 2014 Share Posted November 17, 2014 Alfred wouldn't be discovering the proxy, just checking to see if it's http or https - but your proposed solution would work for me =) for now, have you prefixed http:// to OS X's setup for the proxies? this will likely be passed through and Alfred will work Link to comment Share on other sites More sharing options...
David Jack Wange Olrik Posted November 17, 2014 Author Share Posted November 17, 2014 for now, have you prefixed http:// to OS X's setup for the proxies? this will likely be passed through and Alfred will work I tried that, and it works for Alfred - but it breaks Safari and other "normal" applications that use http/https. Link to comment Share on other sites More sharing options...
Andrew Posted November 17, 2014 Share Posted November 17, 2014 I tried that, and it works for Alfred - but it breaks Safari and other "normal" applications that use http/https. Fair enough! I'll get that fixed up for the next release Link to comment Share on other sites More sharing options...
David Jack Wange Olrik Posted November 17, 2014 Author Share Posted November 17, 2014 Fair enough! I'll get that fixed up for the next release Excellent! - Maybe add the prefix to Alfreds preference plist for both http and https, so a "power" user can do a "defaults write" to change it from http to https if needed. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now