php - REST and content-type -


I have a question that it is possible to locate the content type request, I am creating REST service and < Code> $ _SERVER ['CONTENT_TYPE'] but I get an indefinite index error I need to set it with content type which I should accept and which should be rejected.

The explanation for me is that you request the HTTP status code of 4XX Want to answer those who are not acceptable, take a look at the question.

Comments

Popular posts from this blog

python - how we can use ajax() in views.py in django? -

matlab - Using loops to get multiple values into a cell -

python - Sequence Pattern recognition with Pybrain -