Permalink
Browse files

Swap to POST

  • Loading branch information...
1 parent a34380c commit 8ea626731ca7b8cdb689d03da296296c33de7afc @CloCkWeRX CloCkWeRX committed Jan 11, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 tests/send.php
View
6 tests/send.php
@@ -5,7 +5,7 @@
PEAR::setErrorHandling(PEAR_ERROR_PRINT);
-$params = @$_GET['params'];
+$params = @$_POST['params'];
// Whatch for hackers
unset($params['file']);
@@ -54,7 +54,7 @@ function stream_stat()
stream_wrapper_register('mytest', 'testStream');
-switch ($_GET['what'])
+switch ($_POST['what'])
{
case 'file':
$params['file'] = 'data.txt';
@@ -70,7 +70,7 @@ function stream_stat()
break;
}
-switch ($_GET['op'])
+switch ($_POST['op'])
{
case 'static':
HTTP_Download2::staticSend($params);

0 comments on commit 8ea6267

Please sign in to comment.