Zend
200-550 · Question #73
When retrieving data from URLs, what are valid ways to make sure all file_get_contents calls send a certain user agent string? (Choose 2)
Sign in or unlock 200-550 to reveal the answer and full explanation for question #73. The question stem and answer options stay visible for context.
Question
When retrieving data from URLs, what are valid ways to make sure all file_get_contents calls send a certain user agent string? (Choose 2)
Options
- A$default_opts = array('http'=>array('user_agent'=>"My Cool Browser")); $default =
- Bstream_context_set_option("user_agent", "My Cool Browser");
- Cini_set('user_agent', "My Cool Browser");
- Dstream_context_set_option($context, "http", "user_agent", "My Cool Browser");
Unlock 200-550 to see the answer
You've previewed enough free 200-550 questions. Unlock 200-550 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.