Test: /ext/standard/tests/http/bug61548.phpt - Version 5.4.29        

Bug #61548 content-type must appear at the end of headers for 201 Location to work in http
Submitted: 2012-03-28 22:14:35 Modified:
From: david Assigned:
Status: Closed Package: HTTP related
PHP Version: 5.3.10 OS: linux

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

Count Diff
168 (98%)
001+ Done
001- POST / HTTP/1.0
002- Host: 127.0.0.1:12342
003- First:1
004- Second:2
005- Content-type: text/plain
006-
007- GET /foo HTTP/1.0
008- Host: 127.0.0.1:12342
009- First:1
010- Second:2
011-
012-
013- POST / HTTP/1.0
014- Host: 127.0.0.1:12342
015- First:1
016- Second:2
017- Content-type: text/plain
018-
019- GET /foo HTTP/1.0
020- Host: 127.0.0.1:12342
021- First:1
022- Second:2
023-
024-
025- POST / HTTP/1.0
026- Host: 127.0.0.1:12342
027- First:1
028- Second:2
029- Content-type: text/plain
030- Third:
031-
032- GET /foo HTTP/1.0
033- Host: 127.0.0.1:12342
034- First:1
035- Second:2
036- Third:
037-
038- POST / HTTP/1.0
039- Host: 127.0.0.1:12342
040- First:1
041- Content-type:text/plain
042- Second:2
043-
044- GET /foo HTTP/1.0
045- Host: 127.0.0.1:12342
046- First:1
047- Second:2
048-
049- POST / HTTP/1.0
050- Host: 127.0.0.1:12342
051- First:1
052- Content-type:text/plain
053- Second:2
054-
055- GET /foo HTTP/1.0
056- Host: 127.0.0.1:12342
057- First:1
058- Second:2
059-
060- POST / HTTP/1.0
061- Host: 127.0.0.1:12342
062- First:1
063- Content-type:text/plain
064- Second:2
065- Third:
066-
067- GET /foo HTTP/1.0
068- Host: 127.0.0.1:12342
069- First:1
070- Second:2
071- Third:
072-
073- Done
1 (1%)
001+ Warning: fopen(http://127.0.0.1:12342/): failed to open stream: Connection timed out in %s/bug61548.php on line 21
002+
003+ Warning: fopen(http://127.0.0.1:12342/): failed to open stream: Connection timed out in %s/bug61548.php on line 21
004+
005+ Warning: fopen(http://127.0.0.1:12342/): failed to open stream: Connection timed out in %s/bug61548.php on line 21
006+
007+ Warning: fopen(http://127.0.0.1:12342/): failed to open stream: Connection timed out in %s/bug61548.php on line 21
008+
009+ Warning: fopen(http://127.0.0.1:12342/): failed to open stream: Connection timed out in %s/bug61548.php on line 21
001- POST / HTTP/1.0
002- Host: 127.0.0.1:12342
003- First:1
004- Second:2
005- Content-type: text/plain
007- GET /foo HTTP/1.0
008- Host: 127.0.0.1:12342
011+ Warning: fopen(http://127.0.0.1:12342/): failed to open stream: Connection timed out in %s/bug61548.php on line 21
012+ Done
009- First:1
010- Second:2
011-
012-
013- POST / HTTP/1.0
014- Host: 127.0.0.1:12342
015- First:1
016- Second:2
017- Content-type: text/plain
018-
019- GET /foo HTTP/1.0
020- Host: 127.0.0.1:12342
021- First:1
022- Second:2
023-
024-
025- POST / HTTP/1.0
026- Host: 127.0.0.1:12342
027- First:1
028- Second:2
029- Content-type: text/plain
030- Third:
031-
032- GET /foo HTTP/1.0
033- Host: 127.0.0.1:12342
034- First:1
035- Second:2
036- Third:
037-
038- POST / HTTP/1.0
039- Host: 127.0.0.1:12342
040- First:1
041- Content-type:text/plain
042- Second:2
043-
044- GET /foo HTTP/1.0
045- Host: 127.0.0.1:12342
046- First:1
047- Second:2
048-
049- POST / HTTP/1.0
050- Host: 127.0.0.1:12342
051- First:1
052- Content-type:text/plain
053- Second:2
054-
055- GET /foo HTTP/1.0
056- Host: 127.0.0.1:12342
057- First:1
058- Second:2
059-
060- POST / HTTP/1.0
061- Host: 127.0.0.1:12342
062- First:1
063- Content-type:text/plain
064- Second:2
065- Third:
066-
067- GET /foo HTTP/1.0
068- Host: 127.0.0.1:12342
069- First:1
070- Second:2
071- Third:
072-
073- Done
1 (1%)
001+ POST / HTTP/1.1
002+ User-Agent: PHP/5.4.29
001- POST / HTTP/1.0
004+ Accept: */*
007- GET /foo HTTP/1.0
008+ Content-Length: 0
010+ POST / HTTP/1.1
011+ User-Agent: PHP/5.4.29
012-
013- POST / HTTP/1.0
013+ Accept: */*
016+ Content-type: text/plain
017+ Content-Length: 0
019+ POST / HTTP/1.1
020+ User-Agent: PHP/5.4.29
019- GET /foo HTTP/1.0
022+ Accept: */*
024-
025- POST / HTTP/1.0
026+ Content-Length: 0
028+ POST / HTTP/1.1
029+ User-Agent: PHP/5.4.29
029- Content-type: text/plain
030- Third:
031+ Accept: */*
032- GET /foo HTTP/1.0
033+ Content-type:text/plain
035+ Content-Length: 0
036- Third:
037+ POST / HTTP/1.1
038+ User-Agent: PHP/5.4.29
038- POST / HTTP/1.0
040+ Accept: */*
042+ Content-type:text/plain
044+ Content-Length: 0
046+ POST / HTTP/1.1
047+ User-Agent: PHP/5.4.29
049+ Accept: */*
051+ Content-type:text/plain
053+ Content-Length: 0
055+ Done
039- Host: 127.0.0.1:12342
040- First:1
041- Content-type:text/plain
042- Second:2
043-
044- GET /foo HTTP/1.0
045- Host: 127.0.0.1:12342
046- First:1
047- Second:2
048-
049- POST / HTTP/1.0
050- Host: 127.0.0.1:12342
051- First:1
052- Content-type:text/plain
053- Second:2
054-
055- GET /foo HTTP/1.0
056- Host: 127.0.0.1:12342
057- First:1
058- Second:2
059-
060- POST / HTTP/1.0
061- Host: 127.0.0.1:12342
062- First:1
063- Content-type:text/plain
064- Second:2
065- Third:
066-
067- GET /foo HTTP/1.0
068- Host: 127.0.0.1:12342
069- First:1
070- Second:2
071- Third:
072-
073- Done
1 (1%)
001+ POST / HTTP/1.1
002+ User-Agent: PHP/5.4.29
001- POST / HTTP/1.0
004+ Accept: */*
005- Content-type: text/plain
006+ Content-type:text/plain
007- GET /foo HTTP/1.0
008+ Content-Length: 0
009+ Expect: 100-continue
011+ Done
008- Host: 127.0.0.1:12342
009- First:1
010- Second:2
011-
012-
013- POST / HTTP/1.0
014- Host: 127.0.0.1:12342
015- First:1
016- Second:2
017- Content-type: text/plain
018-
019- GET /foo HTTP/1.0
020- Host: 127.0.0.1:12342
021- First:1
022- Second:2
023-
024-
025- POST / HTTP/1.0
026- Host: 127.0.0.1:12342
027- First:1
028- Second:2
029- Content-type: text/plain
030- Third:
031-
032- GET /foo HTTP/1.0
033- Host: 127.0.0.1:12342
034- First:1
035- Second:2
036- Third:
037-
038- POST / HTTP/1.0
039- Host: 127.0.0.1:12342
040- First:1
041- Content-type:text/plain
042- Second:2
043-
044- GET /foo HTTP/1.0
045- Host: 127.0.0.1:12342
046- First:1
047- Second:2
048-
049- POST / HTTP/1.0
050- Host: 127.0.0.1:12342
051- First:1
052- Content-type:text/plain
053- Second:2
054-
055- GET /foo HTTP/1.0
056- Host: 127.0.0.1:12342
057- First:1
058- Second:2
059-
060- POST / HTTP/1.0
061- Host: 127.0.0.1:12342
062- First:1
063- Content-type:text/plain
064- Second:2
065- Third:
066-
067- GET /foo HTTP/1.0
068- Host: 127.0.0.1:12342
069- First:1
070- Second:2
071- Third:
072-
073- Done
1 (1%)