#3 aria2c unable to http connect through squid proxy

closed
nobody
None
5
2012-09-28
2009-02-04
Dave Plater
No

The following error occurs when trying to use aria2c through a local proxy:-
2009-02-03 15:31:11.904436 DEBUG - CUID#5 - socket: read:0, write:0, hup:0,
err:0
2009-02-03 15:31:11.904530 DEBUG - CUID#5 - Using proxy
2009-02-03 15:31:11.904729 INFO - CUID#5 - Name resolution complete: 0.0.0.0 ->
0.0.0.0
2009-02-03 15:31:11.904810 INFO - CUID#5 - Connecting to 0.0.0.0:3128
2009-02-03 15:31:11.905150 DEBUG - CUID#5 - socket: read:0, write:1, hup:0,
err:0
2009-02-03 15:31:11.905296 INFO - CUID#5 - Requesting:
CONNECT download.opensuse.org:80 HTTP/1.1
User-Agent: aria2
Host: download.opensuse.org:80

2009-02-03 15:31:11.906018 DEBUG - CUID#5 - socket: read:1, write:0, hup:0,
err:0
2009-02-03 15:31:11.906157 INFO - CUID#5 - Response received:
HTTP/1.0 403 Forbidden
Server: squid/2.7.STABLE5
Date: Tue, 03 Feb 2009 13:31:11 GMT
Content-Type: text/html
Content-Length: 1064
X-Squid-Error: ERR_ACCESS_DENIED 0
X-Cache: MISS from Arbuthnot.plater
X-Cache-Lookup: NONE from Arbuthnot.plater:3128
Via: 1.0 Arbuthnot.plater:3128 (squid/2.7.STABLE5)
Connection: close
2009-02-03 15:31:11.906412 INFO - CUID#5 - Restarting the download.
URI=http://download.opensuse.org/factory/repo/oss/suse/x86_64/3ddiag-0.742-78.51.x86_64.rpm
Exception: Proxy connection failed.

See bugs http://www.squid-cache.org/bugs/show_bug.cgi?id=2585 and https://bugzilla.novell.com/show_bug.cgi?id=471843 for more info.

Discussion

1 2 > >> (Page 1 of 2)
  • Dave Plater
    Dave Plater
    2009-02-04

    aria2c log

     
    Attachments
  • Dave Plater
    Dave Plater
    2009-02-04

    This is in aria2c version 1.1.2

     
  • tujikawa
    tujikawa
    2009-02-04

    As far as I know, squid doesn't allow CONNECT method for http by default. In order to not to use CONNECT method to connect to the proxy server, you can use --proxy-method=get option. Could you try this option?

     
  • Dave Plater
    Dave Plater
    2009-02-04

    Thanks for prompt response. That solves the problem as it works in aria2.conf.
    One other question, why doesn't the line "all_proxy=0.0.0.0:3128" in aria2.conf have any effect whereas it works as an environment variable.

     
  • Peter Poeml
    Peter Poeml
    2009-02-04

    Squid indeed doesn't allow the CONNECT method by default - except for some well-known HTTPS ports. Port 80 is not among them. In fact, it is only port 443 by default.

     
  • tujikawa
    tujikawa
    2009-02-04

    Could you try "all-proxy=0.0.0.0:3128"?

     
  • Dave Plater
    Dave Plater
    2009-02-04

    Ok now I understand what I was doing wrong, the environment variable options have an underscore and the options have a dash. I should look at the man page more carefully. From what I understand from the squid people and Peter Poeml your default should be get for http and not tunnel.

     
  • tujikawa
    tujikawa
    2009-02-06

    I agree, it would be good to make aria2 work by default with popular squid proxy.
    I'll change the default value of proxy method to 'get'.

     
  • Dave Plater
    Dave Plater
    2009-02-07

    You can close the bug when you give me a version number with the change.

     
  • tujikawa
    tujikawa
    2009-02-07

    aria2-1.2.0b+20090208 has the change.

     
1 2 > >> (Page 1 of 2)