Proxying Apache Bench through Fiddler

The directions as follows work for a local VM environment (VirtualBox/Vagrant), on a Windows host. Apache Bench is installed from XAMPP. If pointing ab directly at the VM, use the machine IP address ( is fine). If proxying through Fiddler, it must use localhost, or the requests do not display in Fiddler. You must also select “Allow Remote Computers to Connect” in the Tools->Fiddler Options menu, under “Connections.”

POST request without Fiddler:

ab -n 1 -p post.txt -T application/x-www-form-urlencoded

POST request with Fiddler (you can also use the machine IP or hostname here):

ab -n 1 -X localhost:8888 -p post.txt -T application/x-www-form-urlencoded http://localhost:8080/index.js

Also note that complicated URLs may need to be quoted on the command line:

ab -n 100000 ""