Files
ServiceSimulator/test/service/webservice/file_content_response.py
stubbfel 7cf755493c Merge branch 'master' into master-2
# Conflicts:
#	LICENSE
2015-03-27 00:06:28 +01:00

16 lines
396 B
Python
Executable File

#!/usr/bin/env python3
__author__ = 'dev'
import cgi
from fake_services.service.webservice.fake_http_request_handler import RESPONSE_PATH_PARAMETER_KEY_NAME
response_file_path = cgi.FieldStorage()[RESPONSE_PATH_PARAMETER_KEY_NAME].value
response_file = open(response_file_path, "r")
response_file_content = response_file.read()
response_file.close()
print("\n")
print(response_file_content)