[prev in list] [next in list] [prev in thread] [next in thread] 

List:       python-distutils-sig
Subject:    [Distutils] pip user-agent string
From:       Wichert Akkerman <wichert () wiggy ! net>
Date:       2015-03-23 8:44:41
Message-ID: B0193CA5-7F4E-4FEE-A485-B8DDB5EF360B () wiggy ! net
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


I noticed that pip sends a pretty strange User-Agent string:

127.0.0.1 - - [23/Mar/2015:08:31:31 +0000] "GET /python/ HTTP/1.1" 200 =
17676 "-" "pip/6.0.8 =
{\x22cpu\x22:\x22x86_64\x22,\x22distro\x22:{\x22id\x22:\x22trusty\x22,\x22=
libc\x22:{\x22lib\x22:\x22glibc\x22,\x22version\x22:\x222.4\x22},\x22name\=
x22:\x22Ubuntu\x22,\x22version\x22:\x2214.04\x22},\x22implementation\x22:{=
\x22name\x22:\x22CPython\x22,\x22version\x22:\x222.7.6\x22},\x22installer\=
x22:{\x22name\x22:\x22pip\x22,\x22version\x22:\x226.0.8\x22},\x22python\x2=
2:\x222.7.6\x22,\x22system\x22:{\x22name\x22:\x22Linux\x22,\x22release\x22=
:\x223.13.0-46-generic\x22}}"

This looks like a strangely encoded JSON blob. Can that be changed to =
something more human readable and parseable by standard log analysers?

Wichert.=

[Attachment #5 (unknown)]

<html><head><meta http-equiv="Content-Type" content="text/html \
charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: \
space; -webkit-line-break: after-white-space;" class="">I noticed that pip sends a \
pretty strange User-Agent string:<div class=""><br class=""></div><div class=""><font \
face="Menlo" class="">127.0.0.1 - - [23/Mar/2015:08:31:31 +0000] "GET /python/ \
HTTP/1.1" 200 17676 "-" \
"pip/6.0.8&nbsp;{\x22cpu\x22:\x22x86_64\x22,\x22distro\x22:{\x22id\x22:\x22trusty\x22, \
\x22libc\x22:{\x22lib\x22:\x22glibc\x22,\x22version\x22:\x222.4\x22},\x22name\x22:\x22 \
Ubuntu\x22,\x22version\x22:\x2214.04\x22},\x22implementation\x22:{\x22name\x22:\x22CPy \
thon\x22,\x22version\x22:\x222.7.6\x22},\x22installer\x22:{\x22name\x22:\x22pip\x22,\x \
22version\x22:\x226.0.8\x22},\x22python\x22:\x222.7.6\x22,\x22system\x22:{\x22name\x22:\x22Linux\x22,\x22release\x22:\x223.13.0-46-generic\x22}}"<br \
class=""></font><br class=""></div><div class="">This looks like a strangely encoded \
JSON blob. Can that be changed to something more human readable and parseable by \
standard log analysers?</div><div class=""><br class=""></div><div \
class="">Wichert.</div></body></html>



_______________________________________________
Distutils-SIG maillist  -  Distutils-SIG@python.org
https://mail.python.org/mailman/listinfo/distutils-sig


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic