xref: /PHP-5.6/ext/curl/tests/curl_basic_021.phpt (revision c507c9f0)
1--TEST--
2Test curl_getinfo() function with CURLINFO_CONTENT_TYPE parameter
3--CREDITS--
4Jean-Marc Fontaine <jmf@durcommefaire.net>
5--SKIPIF--
6<?php include 'skipif.inc'; ?>
7--FILE--
8<?php
9  include 'server.inc';
10  $host = curl_cli_server_start();
11  $url  = "{$host}/get.php?test=contenttype";
12
13  $ch = curl_init();
14  curl_setopt($ch, CURLOPT_URL, $url);
15  curl_exec($ch);
16  var_dump(curl_getinfo($ch, CURLINFO_CONTENT_TYPE));
17  curl_close($ch);
18?>
19===DONE===
20--EXPECTF--
21%unicode|string%(24) "text/plain;charset=utf-8"
22===DONE===
23