Serve a POST request. This is only implemented for CGI scripts.
(self)
| 1064 | rbufsize = 0 |
| 1065 | |
| 1066 | def do_POST(self): |
| 1067 | """Serve a POST request. |
| 1068 | |
| 1069 | This is only implemented for CGI scripts. |
| 1070 | |
| 1071 | """ |
| 1072 | |
| 1073 | if self.is_cgi(): |
| 1074 | self.run_cgi() |
| 1075 | else: |
| 1076 | self.send_error( |
| 1077 | HTTPStatus.NOT_IMPLEMENTED, |
| 1078 | "Can only POST to CGI scripts") |
| 1079 | |
| 1080 | def send_head(self): |
| 1081 | """Version of send_head that support CGI scripts""" |
nothing calls this directly
no test coverage detected