Bug 83427

Summary: [patch] www/http_load proxy support does not work
Product: Ports & Packages Reporter: Antony Mawer <gnats>
Component: Individual Port(s)Assignee: freebsd-ports-bugs (Nobody) <ports-bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
patch-ab none

Description Antony Mawer 2005-07-14 02:30:18 UTC
	The -proxy argument to the http_load port does not have any effect.
	HTTP requests are always made direct to the remote server instead
	of going via the specified proxy server.

	The same issue can be found in the NetBSD PR database located here:
	http://www.netbsd.org/cgi-bin/query-pr-single.pl?number=26541

Fix: This patch is essentially identical to the one from NetBSD PR 26541,
	with a further change that appears to have been missed in that PR. The
	attached patch fixes the issue and has been tested successfully. After
	rebuilding with the attached patch, http_load correctly sends traffic
	via the specified proxy server.
How-To-Repeat: 	Run the http_load command with a proxy:

	http_load -proxy <proxyhost>:<port> -rate 5 -seconds 10 urls.txt

	Observe that no traffic goes via the proxy server, and instead all
	requests are made direct to the remote web servers specified in urls.txt
Comment 1 Pav Lucistnik freebsd_committer freebsd_triage 2005-07-15 22:51:17 UTC
State Changed
From-To: open->closed

Committed, thanks!