Skip to content

Instantly share code, notes, and snippets.

@dermoth
Created March 1, 2012 08:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dermoth/1948436 to your computer and use it in GitHub Desktop.
Save dermoth/1948436 to your computer and use it in GitHub Desktop.
test for m2php
<?php
// Never played with php includes before but that seems to work!
include '../Mongrel2/Connection.php';
include '../Mongrel2/Request.php';
include '../Mongrel2/Tool.php';
use Mongrel2\Request;
$fh=fopen('request_payloads.txt', 'r');
while (true) {
$line=fgets($fh);
if ($line===false) break;
var_dump(Request::parse(rtrim($line))); //Shall I compare with python data?
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment