Control: tag -1 - unreproducible + confirmed upstream
Control: retitle -1 links2: Setting "-only-proxies 1" also sets 
"-http.fake-firefox 1" unconditionally

Hi,

Fulano Diego Perez wrote:
> > I'm sorry, but I can't reproduce this issue:
> > 
> > Calling "links2 -http.fake-user-agent UA http://wtfismyip.com/headers";
> > gives me as expected:
> > 
> > host: wtfismyip.com
> > user-agent: UA
> > accept: */*
> > accept-language: en,*;q=0.1
> > accept-encoding: gzip,deflate,bzip2,lzma,lzma2
> > accept-charset:
> > us-ascii,ISO-8859-1,ISO-8859-2,ISO-8859-3,ISO-8859-4,ISO-8859-5,ISO-8859-6,[...]
> > connection: keep-alive
> > 
> > Switching to HTTPS does not make a difference either. Same for links2
> > on Debian Stable.

This is still the case.
 
> >> also the same when using fake.firefox 0/1
> > 
> > Never heard of that option/setting and it's neither in the man page,
> > nor in the --help output nor listed in ~/.links2/links.cfg nor can
> > such a binary setting be seen in the menu under Setup -> Network options
> > -> HTTP options -> Headers options.
> 
> which menu is that in stretch ?

Indeed, I now see the option in Sid. For my previous mail I checked
both, Jessie and Sid in parallel and looked up the man-page and -h
output on Jessie instead of Sid. Sorry for that mistake.

On Sid you can find it under Setup -> Network options -> HTTP options
-> Header options -> Fake Firefox

> with all 3 below:
> 
> $ links2 -socks-proxy 127.0.0.1:9051 -only-proxies 1 -http.referer 0
> -http.fake-user-agent "3 com" https://wtfismyip.com/headers/
> 
> $ links2 -socks-proxy 127.0.0.1:9051 -only-proxies 1 -http.referer 0
> -http.fake-user-agent "Mozilla/5.0 (Windows NT 6.1; rv:45.0)
> Gecko/20100101 Firefox/45.0" https://wtfismyip.com/headers/
> 
> $ links2 -socks-proxy 127.0.0.1:9051 -only-proxies 1 -http.referer 0
> -http.fake-user-agent " " https://wtfismyip.com/headers/

Thanks for these more detailed examples. That helped a lot to
understand where the issue is.

I can confirm that these combinations of options behave as if
-http.fake-firefox would have been set to 1.

Dropping the "-only-proxies 1" make the remainder work as expected.

Unfortunately I found no obvious reason in the source code why these
two options should be connected. Will forward the issue to upstream.

> dpkg --reconfigure

Nope. That has nothing to do with this issue.

                Regards, Axel
-- 
 ,''`.  |  Axel Beckert <a...@debian.org>, http://people.debian.org/~abe/
: :' :  |  Debian Developer, ftp.ch.debian.org Admin
`. `'   |  4096R: 2517 B724 C5F6 CA99 5329  6E61 2FF9 CD59 6126 16B5
  `-    |  1024D: F067 EA27 26B9 C3FC 1486  202E C09E 1D89 9593 0EDE

Reply via email to