Updated to be like php-src and accept any request_method passed in.