News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Robert Basic's Blog:
Benchmarking pages behind a login with ab
November 14, 2011 @ 10:12:05

Robert Basic has a recent post showing you how to use the "cookie jar" functionality included with Apache's "ab" benchmarking tool to get behind your PHP-based login with a simple curl and grep combo.

Tonight I decided to relax a bit and what better way of relaxing is there for a geek then to do some bash scripting?! So for fun and no profit I decided to try and benchmark pages with ab, Apache HTTP server benchmarking tool, which are behind a login. Turns out, it's pretty easy after reading some man pages.

He includes an example of the format of the "cookie jar" and the shell script he used to grab the PHP session ID from it and inject it into the "ab" call. The script is on github.

0 comments voice your opinion now!
benchmark ab apache login phpsessid session tutorial curl grep


blog comments powered by Disqus

Similar Posts

Markus Wolff's Blog: Extending Zend_Controller_Action

Andrew Johnstone's Blog: Emailing Attachments: Exim Filters and PHP streams

PHPBuilder.com: Creating and Manipulating PDFs with PHP and FPDF

Bob Majdak: Apache access logging in JSON format

David Coallier's Blog: Namespaces has PHP 5.3 (Or the other way around)


Community Events





Don't see your event here?
Let us know!


bugfix deployment tips threedevsandamaybe symfony conference framework podcast release series code laravel zendserver community language list introduction api development interview

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework