I use php to write an uploaded API for IOS APP to use
just assume that the counterpart has successfully sent back
how can I send 200 back to the counterpart?
how can I implement this 200response
so that the other party can access it?
I use php to write an uploaded API for IOS APP to use
just assume that the counterpart has successfully sent back
how can I send 200 back to the counterpart?
how can I implement this 200response
so that the other party can access it?
there is no difference between api and other rest api uploading avatars, except for the different data formats of post. You can reply as you should
header ('HTTP/1.0 200 OK');
, or http_response_code (200) in PHP5.4+ environments;
{"ErrCode": "0", "ErrMsg": "OK"}
. This will be easier to debug, and it will be easier to troubleshoot the error Previous: Es6's unfold operator code does not run
Next: How does VueCli3.0 set up the packaged files to be placed in the static directory?