1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00
elinks/contrib/proxy
Kalle Olavi Niemitalo 313e7f48f8 proxy: Ignore files created via Makefile.
gen.c wrote "%d.txt" files, but adding "*.txt" to .gitignore might
cause future documentation to be ignored.  Rename to "%d.http".
2007-07-17 18:30:20 +02:00
..
.gitignore proxy: Ignore files created via Makefile. 2007-07-17 18:30:20 +02:00
gen.c proxy: Ignore files created via Makefile. 2007-07-17 18:30:20 +02:00
Makefile contrib: Tool for view pages offline. 2007-06-21 14:01:47 +02:00
README contrib: Tool for view pages offline. 2007-06-21 14:01:47 +02:00

This program generate proxy.py - a tool for developers to find bugs offline.
How to use it:
1) make the change in src/network/socket.c and recompile the ELinks
/* To enable logging of tranfers, for debugging purposes. */
#if 0
^^^^^
set this to 1

2) set connection.max_connections = 1
   set connection.max_connections_to_host = 1

3) run the ELinks and gather data.

4) revert "#if 1 change" and recompile ELinks.

5) run make in directory with this file. The proxy.py should be generated
and some files with .txt extension.

6) run proxy.py

7) run ELinks and set protocol.http.proxy = localhost:8000

8) repeat previous session, go to the same pages, etc.

If you want to use https use browser scripting to replace
'https' with 'http' in follow_url.

Enjoy,
Witek