Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AUR features not working behind proxy #31

Open
archme opened this issue Apr 7, 2010 · 15 comments
Open

AUR features not working behind proxy #31

archme opened this issue Apr 7, 2010 · 15 comments

Comments

@archme
Copy link

archme commented Apr 7, 2010

At least the AUR features within clyde do not work behind a proxy.
eg: "clyde -Ss clyde" returns nothing behind a proxy (squid)

I think best approach would be to honor the $http_proxy environment variable, like most other console apps (including pacman).

@Kiwi
Copy link
Owner

Kiwi commented Apr 14, 2010

I am really not sure how to fix this as I do not really know anything about $http_proxy or how to handle it or even what it is, do you know anything more about it that would be useful to me resolving the issue?

@ijanos
Copy link

ijanos commented Apr 14, 2010

It should work fine with a proxifier program like tsocks or proxychains. I think adding proxy support should be low priority.

@mickael9
Copy link

Why not use luacurl or lua-cURL ? Curl supports SOCKS and HTTP proxies, and it honours http_proxy environment variable.

http://curl.haxx.se/libcurl/lua/

@neenaoffline
Copy link

I fixed it quite crudely.
http://gist.github.com/589444

Just added two lines of code, after looking at http://w3.impa.br/~diego/software/luasocket/http.html

I'm pretty sure there is a better way to do it. (with just one line.)

@mickael9
Copy link

Unfortunately, luasocket doesn't support proxy authentification.

@neenaoffline
Copy link

Doesn't this work?
"http://user:password@host:port"?

@mickael9
Copy link

The user and password part of the proxy url is ignored by luasocket

@juster
Copy link
Collaborator

juster commented Nov 19, 2010

I have a branch that uses lua-cURL that I can merge into master. I will just have to coordinate things so that the deps for the AUR package are changed.

Could anyone help me test out the lua-cURL branch proxy stuff? I don't have a proxy to try it out with.

@juster
Copy link
Collaborator

juster commented Nov 19, 2010

Oops I clicked the wrong button and closed this. Heh. Reopened it.

@mickael9
Copy link

I can test it.

Where can I find it?

@juster
Copy link
Collaborator

juster commented Nov 19, 2010

Ok I think I got it working. Here are instructions to install the lua-curl branch.

If you don't have the git repository clone already, cd to a directory where you want th e clyde repo dir contained and type:

git clone git://github.com/Kiwi/clyde.git
cd clyde

edit: If you already have the clyde repository checked out type this in the repo dir instead:

git pull

Now from the repository's directory, type:

git checkout lua-curl
makepkg

Then install the package:

sudo pacman -U clyde-0.03.07-1.i686.pkg.tar.xz

Or whatever the package filename happens to be.

@mickael9
Copy link

Seems to work fine

@juster
Copy link
Collaborator

juster commented Nov 20, 2010

Cool thanks.

@petelewis
Copy link

Hi - any chance this could be ported to the >3.5 version? Also, any plans for it to be merged?

@juster
Copy link
Collaborator

juster commented Apr 14, 2011

No it doesn't look promising.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants