Closed thomasbhatia closed 12 years ago
None for Python/Flask examples work for me, e.g calculator gives me error: AssertionError: HTTP-Server returned http code 405 (expected: 200)
HTTP GET works.
Python client POST don't work.
Wireshark from python client: POST /api/ HTTP/1.0 Content-Type: application/x-www-form-urlencoded Content-Length: 10 Host: 127.0.0.1:8888 User-Agent: Python-urllib/1.17 _call=test
But Flask server responds: {"errors": ["Method must be provided."], "success": false}
Fixed.
None for Python/Flask examples work for me, e.g calculator gives me error: AssertionError: HTTP-Server returned http code 405 (expected: 200)
HTTP GET works.
Python client POST don't work.
Wireshark from python client: POST /api/ HTTP/1.0 Content-Type: application/x-www-form-urlencoded Content-Length: 10 Host: 127.0.0.1:8888 User-Agent: Python-urllib/1.17 _call=test
But Flask server responds: {"errors": ["Method must be provided."], "success": false}