diff options
| -rwxr-xr-x | httptest.py | 11 | ||||
| -rwxr-xr-x | rotord/rotord.cpp | 2 |
2 files changed, 12 insertions, 1 deletions
diff --git a/httptest.py b/httptest.py new file mode 100755 index 0000000..3528741 --- /dev/null +++ b/httptest.py @@ -0,0 +1,11 @@ +#!/usr/bin/python +import httplib +import argparse +parser = argparse.ArgumentParser() +parser.add_argument("method") +parser.add_argument("path") +parser.add_argument("body") +args=parser.parse_args() +connection = httplib.HTTPConnection('127.0.0.1:9000') +connection.request(args.method, args.path, args.body) +print connection.getresponse().read() diff --git a/rotord/rotord.cpp b/rotord/rotord.cpp index e04ba30..fc74801 100755 --- a/rotord/rotord.cpp +++ b/rotord/rotord.cpp @@ -193,7 +193,7 @@ HTTPRequestHandler* RotorRequestHandlerFactory::createRequestHandler(const HTTPS //get audio file location and initiate analysis stringstream str; str << request.stream(); - content << str; + //content << str; } } |
