Created
March 1, 2012 08:56
-
-
Save dermoth/1948436 to your computer and use it in GitHub Desktop.
test for m2php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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