Debian Codegraph @

Changes

raw
1 Revision history for Perl extension HTTP::Proxy
2
3 0.304 Tue Jun 16 2015
4 [FIXES]
5 - fix RT #105177 (Slaven Rezic and Gregor Herrmann), regarding Via: header
6 [TEST]
7 - improvement on the fix for t/23connect.t (thanks to e477),
8 but that does not seem to be enough
9 - fix RT #71771 (test using HTML::Parser)
10
11 0.303 Wed Apr 29 2015
12 [FIXES]
13 - closed RT #90414 (Vincenzo Buttazzo), fixing HTTPS data transfer
14 - closed RT #62950 (Slaven Rezic), adding the port to the Via: header
15 [DOCUMENTATION]
16 - added many more contributors in the META file
17 [TEST]
18 - fixed t/23connect.t
19
20 0.302 Sat Jan 31 2015
21 [DOCUMENTATION]
22 - fix RT #85632 (Ashley Pond V)
23 - multiple documentation fixes (Ashley Pond V)
24 - list git contributors in the META file
25 [PACKAGING]
26 - switch to Dist::Zilla for maintaining the distribution
27
28 0.301 Sun Aug 3 2014
29 [TEST]
30 - fix t/02pod-coverage.t to skip HTTP::Proxy::Engine::Threaded
31 when running under an unthreaded Perl (Masahiro Nagano (KAZEBURO))
32 - fix t/01pod.t and t/02pod-coverage.t to only run under
33 RELEASE_TESTING (thanks to Masahiro Nagano (KAZEBURO))
34
35 0.300 Sun Apr 7 2013
36 [IMPROVEMENTS]
37 - Downgrade a disconnect message from ERROR to SOCKET debug level
38 in order to reduce the amount of runtime log output. Disconnects
39 are /very/ common in HTTP, and shoudn't be considered errors.
40 (thanks to Salve J. Nilsen)
41 [TEST]
42 - include t/90httpstatus.t in the MANIFEST
43 - fix t/67save.t to not try to create files with a "?" in
44 their name under MSWin32
45
46 0.29 Tue Mar 19 2013
47 [TEST]
48 - fix t/50hopbyhop.t to open the proxy on a random port,
49 and avoid failures when port 8080 is "already in use"
50
51 0.28 Thu Mar 14 2013
52 [FIXES]
53 - the Accept-Encoding header removal code was broken in the previous
54 version. Now the header will be removed as soon as a body filter
55 is configured for the proxy.
56 [TEST]
57 - use File::Spec in the test suite to compute portable file names,
58 to avoid some test failures, like
59 http://www.cpantesters.org/cpan/report/856ca676-6bf5-1014-bfa1-9d8aa3912248
60
61 0.27 Fri Mar 8 2013
62 [IMPROVEMENTS]
63 - in HTTP::Proxy::HeaderFilter::standard, now remove the Accept-Encoding header
64 only when we know we'll actually look at the response body
65 [TESTS]
66 - use httpstat.us to test HTTP statuses
67
68 0.26 Wed Feb 6 2013
69 [IMPROVEMENTS]
70 - remove a "Use of "goto" to jump into a construct is deprecated"
71 warning (Tom Hukins)
72 [DOCUMENTATION]
73 - fix RT #77685 (Tom Hukins)
74 - improved the number of links to other modules from the documentation
75 [TEST]
76 - fix RT #71771 (Tom Hukins)
77 - fix test failures in POD tests (Tom Hukins)
78
79 0.25 Sun Jul 3 00:28:10 CEST 2011
80 [ENHANCEMENTS]
81 - new Engine: HTTP::Proxy::Engine::Threaded, by Angelos Karageorgiou
82 [FIXES]
83 - Correctly call eod() when the response has no body
84 (closed RT ticket #48310)
85
86 0.24 Tue Jul 21 21:28:02 CEST 2009
87 [ENHANCEMENTS]
88 - When a short-circuit response was send, the next response
89 would not be filtered at all. This has been fixed.
90 [FIXES]
91 - yet another fix for t/23connect, proposed by Marek Rouchal
92 (closed RT ticket #38995) [test skipped for now]
93 - HTTP::Headers::Util's split_header_words() returns lower case
94 tokens/keys since October 6, 2008. Fix by Maurice Aubrey.
95 (closed RT tickets #43249, #43622)
96
97 0.23 Thu Sep 4 02:29:47 CEST 2008
98 [ENHANCEMENTS]
99 - HTTP::Proxy::BodyFilter::save had an issue with cygwin because
100 of an incorrect use of File::Spec's catdir(). This is fixed.
101 - CONNECT requests are now forwarded to the upstream proxy, if there
102 is one. Errors from the upstream proxy are relayed to the client.
103 [TESTS]
104 - t/23connect.t does not use sysread() anymore. This time the test
105 should pass about everywhere.
106
107 0.22 Thu May 1 00:18:38 CEST 2008
108 [TESTS]
109 - increased test coverage
110 - t/23connect.t doesn't need an Internet connection any more,
111 thus closing RT ticket #19653.
112 - t/67complete.t tests HTTP::Proxy::BodyFilter::complete
113 [DOCUMENTATION]
114 - closed RT ticket #33465 (Jimbo), by explaining in a little
115 more detail how HTTP::Proxy::BodyFilter::complete works.
116
117 0.21 Sun Apr 20 04:34:47 CEST 2008
118 [ENHANCEMENTS]
119 - HTTP::Proxy::Engine::Legacy and HTTP::Proxy::Engine::ScoreBoard
120 log the number of remaining child processes (in addition to
121 their pids), thanks to Amos Shapira.
122 [FIXES]
123 - HTTP::Proxy::BodyFilter::save had a bug that prevented the
124 'filename' parameter to be correctly used to compute the
125 filename to save to, and that made the proxy die the second
126 time the filter was called.
127 This fix allowed to close RT tickets #14548 (Max Maischein),
128 #18644 (Mark Tilford) and #33018 (Roland Stigge and Gunnar Wolf).
129 - HTTP::Proxy::BodyFilter::save had many other bugs, which the
130 test suite allowed to spot and fix.
131 [TESTS]
132 - t/67save.t provides 96% coverage of HTTP::Proxy::BodyFilter::save,
133 and helped fix many bugs in it.
134 - fixed t/22http.t and t/22transparent.t not to break when the
135 DNS wrongly resolves an invalid address.
136 [DOCUMENTATION]
137 - closed RT ticket #25295 (Matsuno Tokuhiro) with a doc patch.
138
139 0.20 Fri Aug 18 10:25:11 CEST 2006
140 [ENHANCEMENTS]
141 - Added a will_modify() method to HTTP::Proxy::BodyFilter, that
142 lets the proxy know if a filter may modify the content length,
143 thus closing RT ticket #21051 (Chris Dolan)
144 - If no filter in the current stack will modify the content length,
145 then the header is not removed
146 [FIXES]
147 - closed RT tickets #3184 and #20251 (chunked encoding was enforced
148 while transfering data between a client and server using
149 different versions of HTTP, causing unwanted garbage to appear
150 in the data)
151 - removed useless "ERROR: Getting request failed:" messages
152 when there are simply "No more requests from this connection"
153 [INTERNALS]
154 - Removed the HTTP::Proxy::FilterStack class from inside HTTP::Proxy
155 and put it in its own module file
156 - renamed HTTP::Proxy::FilterStack::active() as will_modify() for
157 consistency reasons
158 [TESTS]
159 - updated t/22http.t and t/23connect.t following Ken Williams'
160 recommandations in RT ticket #19986
161 [DOCUMENTATION]
162 - patched a small inconsistency in HTTP::Proxy::BodyFilter's
163 documentation (and closed RT ticket #20303)
164 - fully documented HTTP::Proxy::FilterStack
165
166 0.19 Fri Apr 28 19:55:41 CEST 2006
167 [ENHANCEMENTS]
168 - HTTP::Proxy::HeaderFilter::simple now lets one define an
169 end() method as well
170 [FIXES]
171 - HTTP::Proxy::(Body|Header)Filter::simple now provide a default
172 filter() that does nothing if their constructor is not given one
173 (thanks to Merijn Brand)
174 - close RT ticket #14548 by correcting the 'filename' check
175 in HTTP::Proxy::BodyFilter::save (Max Maischein)
176 - ERROR messages are always logged (Mark Tilford)
177 [TESTS]
178 - more tests for log() and logmask() in t/11log.t
179
180 0.18 Sun Mar 19 23:49:38 CET 2006
181 [ENHANCEMENTS]
182 - the new known_methods() method can return all method
183 names know to HTTP::Proxy (can be helpful with the
184 method parameter of push_filter())
185 [FIXES]
186 - close RT ticket #14898 by using a per-parent lockfile for
187 HTTP::Proxy::Engine::ScoreBoard (Chris Dolan)
188 - close RT ticket #18243 by adding missing DeltaV methods
189 (Stephen Steneker)
190 [EXAMPLES]
191 - eg/perlmonks.pl - redirect perlmonks.com to perlmonks.org
192
193 0.17 Wed Sep 28 23:25:17 CEST 2005
194 [ENHANCEMENTS]
195 - Thanks to Randal Schwartz, a new HTTP::Proxy::Engine::ScoreBoard
196 engine is available. I've benchmarked a twofold speed increase.
197 This engine is still beta, you must enable it by hand.
198
199 0.16 Thu Sep 1 19:13:55 CEST 2005
200 [ENHANCEMENTS]
201 - the new HTTP::Proxy::Engine class and its subclasses
202 now handle the life and death of child processes
203 - the Content-Length header is now removed only if body
204 filters will be applied on the response body
205 - HTTP::Proxy now supports some Apache-like attributes
206 (start_servers, max_clients, max_requests_per_child,
207 min_spare_servers, max_spare_servers, keep_alive,
208 max_keep_alive_requests, keep_alive_timeout)
209 - added support for ALL WebDAV/DeltaV methods
210 - the query argument to push_filter(), added in 0.14, should
211 now work (thanks to Simon Cozens for spotting the problem)
212 - the proxy now has a stash, which is a hash where filters can
213 store data (possibly to share it). (Requested by Mark Fowler)
214 Warning: since the proxy forks for each TCP connection, the
215 data is only shared between filters in the same child process.
216 [DEPRECATION]
217 - the maxchild, maxconn and maxserve accessors are now
218 deprecated. They will disappear in the future:
219 + maxchild has no replacement (should be handled by the engine)
220 + maxconn becomes max_connections
221 + maxserve becomes max_keep_alive_requests
222 - Information regarding the way the engine should behave
223 must passed in the constructor or directly to the engine
224 [NEW METHODS]
225 - $proxy->engine() return the HTTP::Proxy::Engine instance
226 - $proxy->new_connection() increase the TCP connections counter
227 (should only be used by HTTP::Proxy::Engine object)
228 [FIXES]
229 - Makefile.PL was not playing nice with Build.PL in the
230 previous distributions. This has been fixed. Sorry for the
231 inconvenience
232 - no more annoying "getsockname() on closed socket GEN0"
233 warnings (they appeared in 0.14)
234 [Win32 SUPPORT]
235 - Win32 is now supported! badly supported, but supported...
236 - until someone writes a decent engine for Win32, the default
237 Win32 engine will be HTTP::Proxy::Engine::NoFork, which
238 can only handle a single TCP connection at a time
239 [EXAMPLES]
240 - eg/yahoogroups.pl - removes ad interruptions from Yahoo! Groups
241 - eg/https.pl - peek/poke at encrypted web pages
242 - eg/logger.pl - improved the logger script
243
244 0.15 Tue Apr 5 21:17:40 CEST 2005
245 [ENHANCEMENTS]
246 - added support for WebDAV methods (requested by Christian Laursen)
247 - The filter selection is based on the original request and response,
248 as it should
249 - improved kwalitee
250 [DEPRECATION]
251 - the start() method is no longer supported in HTTP::Proxy::BodyFilter
252 subclasses. Use begin() instead.
253 [EXAMPLES]
254 - eg/pdf.pl - save \.pdf files and send a HTML confirmation instead
255 (idea by Emmanuel Di Prétoro)
256
257 0.14 Tue Mar 29 11:40:51 CEST 2005
258 [ANNOUNCE]
259 - It's been more than a year since last release, which is bad.
260 I now plan to release new versions more often, maybe about
261 once a month, or when there are big changes.
262 [DEPRECATION]
263 - the start() method of HTTP::Proxy::Bodyfilter subclasses
264 is renamed begin(), since it now has an end() counterpart.
265 (On a related note, I improve my English. Be sure to check out
266 http://www.landgren.net/perl/lt-2004.html for details)
267 - start() in filters is therefore declared deprecated, an error
268 message is logged. The start() method will not be called any
269 more as from 0.15.
270 - the FILTER constant is now named FILTERS. FILTER will disappear
271 in 0.15 as well.
272 [ENHANCEMENTS]
273 - subclasses of HTTP::Proxy::BodyFilter can now have a
274 finalisation method, named end()
275 - the start^Wbegin() method of HTTP::Proxy::BodyFilter subclasses
276 now receive the message as an argument
277 - new built-in filter: HTTP::Proxy::BodyFilter::save
278 that can save the message body to a file while browsing
279 - new built-in filter: HTTP::Proxy::BodyFilter::complete
280 that stores the message body in memory and passes it on to the
281 next filters only when it's complete
282 - logs have cleaner prefixes and the pid is always shown
283 - should work under 5.005_03 (Thanks to Mathieu Arnold)
284 - transparent proxying support (mostly to please Martin Zdila
285 and Paul Makepeace)
286 - push_filter() should now accept the query parameter
287 [FIXES]
288 - the FILTER constant is now named FILTERS
289 [BUGS]
290 - the proxy does not work under Win32, except if you force
291 maxchild to 0 (no forking at all).
292 - t/20dummy.t (and a few others) hanged under Win32
293 + Ken Hirsch proposed a patch for HTTP::Daemon
294 (and a workaround for HTTP::Proxy's daemon object)
295 + Bruno De Fraine tracked down the problem to the fork()
296 emulation by Windows threads under Win32 that lead to
297 a deadlock.
298 => both explanations cover the same problem, which I haven't
299 been able to correct yet
300 - all the tests that fork a proxy and a server are therefore
301 skipped under Win32. This is ugly, and will change in the future.
302 [EXAMPLES]
303 - eg/rfc.pl - save rfc\d+\.txt files as we browse them
304 - eg/js.pl - save \.js files as we browse them
305 - eg/dragon.pl - enhance the Dragon Go Server web site
306 - eg/fudd.pl - make the web tawk wike Ewmer J. Fudd
307 - eg/switch.pl - switch proxies as you browse
308 - Changed all the examples so that they can take HTTP::Proxy::new()
309 parameters on the command-line (so, call them with logmask 3,
310 for example)
311 [DOCUMENTATION]
312 - documentation for the filter initialisation methods
313 - removed all references to the so-called "store-and-forward"
314 mechanism (see HTTP::Proxy::BodyFilter::complete)
315
316 0.13 Wed Mar 3 17:36:31 CET 2004
317 [ENHANCEMENTS]
318 - CONNECT support (but only transparently...)
319 - the client_headers() method (similar to hop_headers()) give
320 the filters access to the proxy's LWP::UA Client-* headers
321 - filters are applied on all supported methods by default
322 [FIXES]
323 - removed everything regarding control() and control_regex(),
324 which were not used and confusing
325 [TESTS]
326 - tests for CONNECT support
327 - tests for SSL support (not working yet)
328 [EXAMPLES]
329 - eg/adblock.pl - a very simple adblocker
330 - eg/trim.pl - trims whitespace from HTML pages
331 - eg/javascript.pl - add any text right after <body>
332 [DOCUMENTATION]
333 - separate COPYRIGHT and LICENSE sections in all man pages
334
335 0.12 Thu Jan 22 23:54:03 CET 2004
336 [ENHANCEMENTS]
337 - send the error message to the client when the Proxy agent dies
338 (usually because of a filter error)
339 - the proxy now sends a X-Forwarded-For header by default
340 (and the proxy method x_forwarded_for can toggle this)
341 - the proxy method client_socket() gives access to the socket
342 connected to the current client (the example in Changes for 0.10
343 was wrong: one can get the IP address of the connected agent from
344 inside a filter with $self->proxy->client_socket->peerhost)
345 [FIXES]
346 - do not block simultaneous connections when not forking
347 - clean up the filter chain after the body-request filters
348 - ensure the filter stack is reinitialised between requests
349 [TESTS]
350 - tests for X-Forwarded-For
351 - test the proxy against http://diveintomark.org/tests/client/http/
352 [EXAMPLES]
353 - eg/post.pl - outputs the URI and parameters of all POST requests
354 - eg/logger.pl - outputs details of GET and POST requests
355
356 0.11 Fri Jan 2 17:02:08 CET 2004
357 [ENHANCEMENTS]
358 - setting maxchild to 0 prevents forking (Jim Cromie)
359 - filters can now match on the query string
360 - hop-by-hop headers and Max-Forwards headers are correctly supported
361 - new mutators added to HTTP::Proxy: via, hop_headers, request,
362 response
363 - filters can now answer in place of the server, which allows
364 for authorisation filters, cache (?) filters, etc.
365 - new examples scripts: proxy-auth.pl
366 [FIXES]
367 - push_filter() now correctly supports several match criteria
368 [TESTS]
369 - all the Via: header tests are now in t/50via.t
370 - t/50standard.t now checks headers for several request types
371 - new tests:
372 + t/51simple2.t - check response header filters with an actual proxy
373 + t/61simple2.t - check response body filters with an actual proxy
374 [INTERNALS]
375 - new method _send_response_headers
376
377 0.10 Wed Nov 19 01:36:59 CET 2003
378
379 *** MAJOR INTERFACE CHANGES ***
380
381 - new base classes HTTP::Proxy::HeaderFilter and
382 HTTP::Proxy::BodyFilter
383 - some useful built-in filter classes:
384 HTTP::Proxy::BodyFilter::htmlparser
385 HTTP::Proxy::BodyFilter::htmltext
386 HTTP::Proxy::BodyFilter::lines
387 HTTP::Proxy::BodyFilter::simple
388 HTTP::Proxy::BodyFilter::tags
389 HTTP::Proxy::HeaderFilter::simple
390 HTTP::Proxy::HeaderFilter::standard
391 - tests for the internal class HTTP::Proxy::FilterStack
392 - tests for the built-in filters
393 - the examples are up-to-date with the new interface
394 - new/enhanced accessors:
395 + the proxy host() attribute becomes actually useful: by default,
396 the proxy is only usable by local user-agents (the socket
397 is bound to localhost)
398 + the filters proxy() accessor gives access to the proxy itself.
399 For example, one can get the IP address of the agent connected
400 to the proxy from inside a filter ($self->proxy->daemon->peerhost)
401 - many documentation changes
402
403 This version is NOT compatible with the previous ones
404 regarding the way filters work.
405
406 *** MAJOR INTERFACE CHANGES ***
407
408 0.09 Fri Aug 15 21:12:17 CEST 2003
409 - maxserve is now correctly handled
410 - corrected a bug in the t/20keepalive.t test file that
411 made the tests fail on some machines
412
413 0.08 Thu Mar 13 01:41:42 CET 2003
414 - cleaned up support for filters
415 - added support for "buffering" filters
416 and a new HTTP::Proxy::FilterStack class
417 - added an anonymiser script (eg/anonymiser.pl)
418 - the tests won't break if a local proxy is configured
419 - the interfaces are very likely to change soon
420
421 0.07 Tue Feb 18 22:30:43 CET 2003
422 - the proxy now supports persistent connexions (Yay!)
423 - and tests to check for it
424 - and a new timeout accessor
425
426 0.06 Mon Feb 17 00:21:37 CET 2003
427 - better forking system and better reaping of zombies
428 (thanks to David Landgren and Stéphane Payrard)
429 Still won't work under Windows, though :-(
430 - replaced verbose() by logmask(), so as to fine-tune
431 the logging system
432 - put some of the test functions in a test module (t::Utils)
433
434 0.05 Tue Feb 4 00:47:23 CET 2003
435 - explicitly refuse CONNECT
436 - better support for TRACE method
437 - support the Via: Header (a MUST in RFC 2616)
438 - filters, but this needs more work
439
440 0.04 Sat Nov 30 12:19:22 CET 2002
441 - accept connection from other hosts
442 - better ftp support (no test yet)
443 - basic gopher support (no test yet)
444 - better HTTP error handling
445 - use CRLF in HTTP headers
446
447 0.03 Fri Nov 29 11:17:36 CET 2002
448 - url() method gives a url to reach the proxy
449 - new 'control' attribute defines the control URL
450 - better subprocess management by preforking child processes
451 (thanks to Eric Cholet)
452 - a children handles only one request at a time, for better
453 performance (this means we only do HTTP/1.0 for now)
454 - correctly handle the Proxy-Connection and Connection headers
455
456 0.02 Thu Oct 24 23:45:08 CEST 2002
457 - the system now forks to handle several connections
458 - but needs better test suites
459
460 0.01 Tue Oct 1 11:54:07 CEST 2002
461 - original version