This file is indexed.

/usr/share/pyshared/zope/app/publication/httpfactory.txt is in python-zope.app.publication 3.13.2-0ubuntu2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
=================
HTTPFactory tests
=================

This tests that httpfactory provide the right publication class,
for each request type, defined in the configure.zcml with publisher directive.

The publication class is chosen upon the method name,
the mime type and sometimes some request headers

A regular GET, POST or HEAD

  >>> from zope.app.wsgi.testlayer import http

  >>> print http("""\
  ... GET / HTTP/1.1
  ... """)
  HTTP/1.0 200 OK
  Content-Length: ...
  Content-Type: text/html;charset=utf-8
  ...
  >>> print http("""\
  ... POST / HTTP/1.1
  ... """)
  HTTP/1.0 200 OK
  Content-Length: ...
  Content-Type: text/html;charset=utf-8
  ...
  >>> print http("""\
  ... HEAD / HTTP/1.1
  ... """)
  HTTP/1.0 200 OK
  Content-Length: 0
  Content-Type: text/html;charset=utf-8
  <BLANKLINE>

A text/xml POST request, wich is an xml-rpc call

  >>> print http("""\
  ... POST /RPC2 HTTP/1.0
  ... Content-Type: text/xml
  ... """)
  HTTP/1.0 200 OK
  Content-Length: ...
  Content-Type: text/xml;charset=utf-8
  ...

A text/xml POST request, with a HTTP_SOAPACTION in the headers,
wich is an xml-rpc call:

TODO need to create a real SOAP exchange test here

  >>> print http("""\
  ... POST /RPC2 HTTP/1.0
  ... Content-Type: text/xml
  ... HTTP_SOAPACTION: soap#action
  ... """)
  HTTP/1.0 200 OK
  Content-Length: ...
  Content-Type: text/xml;charset=utf-8
  ...

Unknown request types:

TODO need more testing here

  >>> print http("""\
  ... POST /BUBA HTTP/1.0
  ... Content-Type: text/topnotch
  ... """)
  HTTP/1.0 404 Not Found
  ...