Test: /ext/curl/tests/bug27023.phpt - Version 7.4.21        

Feature/Change Request #27023 CURL: CURLOPT_POSTFIELDS does not parse content types for files
Submitted: 2004-01-23 13:26:19 Modified: 2011-12-07 16:36:47
From: brianl Assigned: pierrick
Status: Closed Package: cURL related
PHP Version: * OS: *

There are 3 different diffs reported by users for this test.

Count Diff
2 (50%)
001+ Server is not running 001- string(%d) "curl_testdata1.txt|application/octet-stream|6" 002- string(%d) "curl_testdata1.txt|text/plain|6" 003- string(%d) "foo.txt|application/octet-stream|6" 004- string(%d) "foo.txt|text/plain|6"
1 (25%)
003+ bool(false) 004+ bool(false) 003- string(%d) "foo.txt|application/octet-stream|6" 004- string(%d) "foo.txt|text/plain|6"
1 (25%)
001+ string(1939) "<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 002+ <html> 003+ <head> 004+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 001- string(%d) "curl_testdata1.txt|application/octet-stream|6" 002- string(%d) "curl_testdata1.txt|text/plain|6" 003- string(%d) "foo.txt|application/octet-stream|6" 004- string(%d) "foo.txt|text/plain|6" 005+ <title>Connection to server failed</title> 006+ <style type="text/css"> 007+ <!-- 008+ body { 009+ font-family: sans-serif; 010+ padding: 1em; 011+ } 012+ .mainBody { 013+ max-width: 600px; 014+ margin: auto; 015+ } 016+ .header { 017+ border-bottom: 3px solid #e73a27; 018+ line-height: 1.5em; 019+ padding-bottom: 1em; 020+ } 021+ h1 { 022+ color: #808080; 023+ font-size: 1.5em; 024+ line-height: 1em; 025+ } 026+ span { 027+ color: #000000; 028+ font-size: 1em; 029+ } 030+ .footer { 031+ text-align: right; 032+ padding-top: 3px; 033+ color: #808080; 034+ font-weight: bold; 035+ } 036+ .footer i { 037+ font-style: normal; 038+ } 039+ .nocss { 040+ display: none; 041+ } 042+ --> 043+ </style> 044+ </head> 045+ <body> 046+ <div class="mainBody"> 047+ <div class="header"> 048+ <h1>Connection to server failed</h1> 049+ <span>Connection actively refused by the server</span> 050+ </div> 051+ <div class="footer"><span class='nocss'><br /></span><i>This message was created by Kerio Control Proxy</i></div> 052+ </div> 053+ </body> 054+ </html> 055+ " 056+ string(1939) "<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 057+ <html> 058+ <head> 059+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 060+ <title>Connection to server failed</title> 061+ <style type="text/css"> 062+ <!-- 063+ body { 064+ font-family: sans-serif; 065+ padding: 1em; 066+ } 067+ .mainBody { 068+ max-width: 600px; 069+ margin: auto; 070+ } 071+ .header { 072+ border-bottom: 3px solid #e73a27; 073+ line-height: 1.5em; 074+ padding-bottom: 1em; 075+ } 076+ h1 { 077+ color: #808080; 078+ font-size: 1.5em; 079+ line-height: 1em; 080+ } 081+ span { 082+ color: #000000; 083+ font-size: 1em; 084+ } 085+ .footer { 086+ text-align: right; 087+ padding-top: 3px; 088+ color: #808080; 089+ font-weight: bold; 090+ } 091+ .footer i { 092+ font-style: normal; 093+ } 094+ .nocss { 095+ display: none; 096+ } 097+ --> 098+ </style> 099+ </head> 100+ <body> 101+ <div class="mainBody"> 102+ <div class="header"> 103+ <h1>Connection to server failed</h1> 104+ <span>Connection actively refused by the server</span> 105+ </div> 106+ <div class="footer"><span class='nocss'><br /></span><i>This message was created by Kerio Control Proxy</i></div> 107+ </div> 108+ </body> 109+ </html> 110+ " 111+ string(1939) "<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 112+ <html> 113+ <head> 114+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 115+ <title>Connection to server failed</title> 116+ <style type="text/css"> 117+ <!-- 118+ body { 119+ font-family: sans-serif; 120+ padding: 1em; 121+ } 122+ .mainBody { 123+ max-width: 600px; 124+ margin: auto; 125+ } 126+ .header { 127+ border-bottom: 3px solid #e73a27; 128+ line-height: 1.5em; 129+ padding-bottom: 1em; 130+ } 131+ h1 { 132+ color: #808080; 133+ font-size: 1.5em; 134+ line-height: 1em; 135+ } 136+ span { 137+ color: #000000; 138+ font-size: 1em; 139+ } 140+ .footer { 141+ text-align: right; 142+ padding-top: 3px; 143+ color: #808080; 144+ font-weight: bold; 145+ } 146+ .footer i { 147+ font-style: normal; 148+ } 149+ .nocss { 150+ display: none; 151+ } 152+ --> 153+ </style> 154+ </head> 155+ <body> 156+ <div class="mainBody"> 157+ <div class="header"> 158+ <h1>Connection to server failed</h1> 159+ <span>Connection actively refused by the server</span> 160+ </div> 161+ <div class="footer"><span class='nocss'><br /></span><i>This message was created by Kerio Control Proxy</i></div> 162+ </div> 163+ </body> 164+ </html> 165+ " 166+ string(1939) "<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 167+ <html> 168+ <head> 169+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 170+ <title>Connection to server failed</title> 171+ <style type="text/css"> 172+ <!-- 173+ body { 174+ font-family: sans-serif; 175+ padding: 1em; 176+ } 177+ .mainBody { 178+ max-width: 600px; 179+ margin: auto; 180+ } 181+ .header { 182+ border-bottom: 3px solid #e73a27; 183+ line-height: 1.5em; 184+ padding-bottom: 1em; 185+ } 186+ h1 { 187+ color: #808080; 188+ font-size: 1.5em; 189+ line-height: 1em; 190+ } 191+ span { 192+ color: #000000; 193+ font-size: 1em; 194+ } 195+ .footer { 196+ text-align: right; 197+ padding-top: 3px; 198+ color: #808080; 199+ font-weight: bold; 200+ } 201+ .footer i { 202+ font-style: normal; 203+ } 204+ .nocss { 205+ display: none; 206+ } 207+ --> 208+ </style> 209+ </head> 210+ <body> 211+ <div class="mainBody"> 212+ <div class="header"> 213+ <h1>Connection to server failed</h1> 214+ <span>Connection actively refused by the server</span> 215+ </div> 216+ <div class="footer"><span class='nocss'><br /></span><i>This message was created by Kerio Control Proxy</i></div> 217+ </div> 218+ </body> 219+ </html> 220+ "