Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / misc / resources / form-post-textplain.php
blob0ccdba3b48f75375d3ab88afb20f0da31609b81e
1 <?php
2 header("Content-type: text/html; charset=UTF-8");
3 ?>
4 <html>
5 <head>
6 <title>Regression test for bug 20795 and 100445</title>
7 </head>
8 <body>
9 <p>
10 This is a test for 20795 and 100445, it makes sure that forms POSTed with a content-type of text/plain actually send data in text/plain
11 </p>
12 <?php
14 $content_type = $_SERVER["CONTENT_TYPE"];
16 if ($content_type == "text/plain") {
17 echo "<p>SUCCESS: Content-type is text/plain.</p>";
18 } else {
19 echo "<p>FAIL: Content-type should be text/plain, but was '$content_type'</p>";
22 $data = file_get_contents("php://input");
24 if($data == "f1=This is field #1 &!@$%\r\n='<>\r\nf2=This is field #2 \"\"") {
25 echo "<p>SUCCESS</p>";
26 } else {
27 echo "<p>FAILURE: $data</p>";
30 <script>
31 if(window.testRunner)
32 testRunner.notifyDone();
33 </script>
34 </body>
35 </html>