mirror of
https://github.com/php/php-src.git
synced 2024-09-22 18:37:25 +00:00
a555cc0b3d
Remove most of the `===DONE===` tags and its variations. Keep `===DONE===` if the test output otherwise becomes empty. Closes GH-4872.
21 lines
496 B
PHP
21 lines
496 B
PHP
--TEST--
|
|
Test curl_getinfo() function with CURLINFO_CONTENT_TYPE parameter
|
|
--CREDITS--
|
|
Jean-Marc Fontaine <jmf@durcommefaire.net>
|
|
--SKIPIF--
|
|
<?php include 'skipif.inc'; ?>
|
|
--FILE--
|
|
<?php
|
|
include 'server.inc';
|
|
$host = curl_cli_server_start();
|
|
$url = "{$host}/get.inc?test=contenttype";
|
|
|
|
$ch = curl_init();
|
|
curl_setopt($ch, CURLOPT_URL, $url);
|
|
curl_exec($ch);
|
|
var_dump(curl_getinfo($ch, CURLINFO_CONTENT_TYPE));
|
|
curl_close($ch);
|
|
?>
|
|
--EXPECT--
|
|
string(24) "text/plain;charset=utf-8"
|