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

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -