{"id":168,"date":"2012-06-06T12:29:35","date_gmt":"2012-06-06T12:29:35","guid":{"rendered":"http:\/\/garysieling.com\/blog\/?p=168"},"modified":"2012-06-06T12:29:35","modified_gmt":"2012-06-06T12:29:35","slug":"proxying-apache-bench-through-fiddler","status":"publish","type":"post","link":"https:\/\/www.garysieling.com\/blog\/proxying-apache-bench-through-fiddler\/","title":{"rendered":"Proxying Apache Bench through Fiddler"},"content":{"rendered":"<p>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 (127.0.0.1 is fine). If proxying through Fiddler, it must use localhost, or the requests do not display in Fiddler. You must also select &#8220;Allow Remote Computers to Connect&#8221; in the Tools->Fiddler Options menu, under &#8220;Connections.&#8221;<\/p>\n<p>POST request without Fiddler:<\/p>\n<pre>\nab -n 1 -p post.txt -T application\/x-www-form-urlencoded http:\/\/127.0.0.1:8080\/index.js\n<\/pre>\n<p>POST request with Fiddler (you can also use the machine IP or hostname here):<\/p>\n<pre>\nab -n 1 -X localhost:8888 -p post.txt -T application\/x-www-form-urlencoded http:\/\/localhost:8080\/index.js\n<\/pre>\n<p>Also note that complicated URLs may need to be quoted on the command line:<\/p>\n<pre>\nab -n 100000 \"http:\/\/127.0.0.1:8080\/index.js?mode=data&fn=set_data&l=1&a0=%5B%22lozanotek%20\/%20Viewfinder%22%2C%22search_langOverride%3D%26language%3D%26q%3Dfork_false%26repo%3D%26start_value%3D10659%26type%3DRepositories%22%2C%22Simple%20filter%20and%20classes%20that%20allow%20you%20to%20find%20views%20depending%20on%20the%20context%20for%20the%20request%22%2C%22%28JavaScript%29%22%5D\"\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>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 (127.0.0.1 is fine). If proxying through Fiddler, it must use localhost, or the requests do not display in Fiddler. You must also &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.garysieling.com\/blog\/proxying-apache-bench-through-fiddler\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Proxying Apache Bench through Fiddler&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[14,32],"tags":[37,50,163,229,278,422,559,566,571,597],"aioseo_notices":[],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts\/168"}],"collection":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/comments?post=168"}],"version-history":[{"count":0,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts\/168\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/media?parent=168"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/categories?post=168"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/tags?post=168"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}