I\'d like to send a local REST request in a flask app, like this:
from flask import Flask, url_for, request
import requests
app = Flask(__name__)
@app.rout
I have had the same issue with post method, in general my post method was doing nothing, thats why this issues came
return _socket.socket.send(self._sock, data, flags) urllib3.exceptions.ProtocolError:
('Connection aborted.', BrokenPipeError(32, 'Broken pipe'))
if request.method == 'POST':
print(len(request.data))
return 'dummy'
this print did the trick