200-710 Exam QuestionsBrowse all questions from this exam

200-710 Exam - Question 17


What Content-Type HTTP header value is required when sending an HTTP POST request using JavaScript to ensure that PHP can access the data?

Show Answer
Correct Answer: AB

To ensure that PHP can access the data being sent in an HTTP POST request using JavaScript, the Content-Type HTTP header should be set to 'application/x-www-form-urlencoded'. This is because PHP is designed to automatically parse data with this content type into the $_POST superglobal array, making it easy to access.

Discussion

2 comments
Sign in to comment
ZhukovPeterOption: A
Jan 4, 2020

I think answer should be A: application/x-www-form-urlencoded

[Removed]Option: A
Jun 20, 2020

The correct answer is : A. application/x-www-form-urlencoded