Test: /ext/curl/tests/curl_basic_004.phpt - Version 7.4.25    

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

Count Diff
1 (50%)
002+ string(3236) "<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> 003+ <html><head> 002- string(19) "http://www.refer.er" 003- ===DONE=== 004+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 005+ <title>ERROR: The requested URL could not be retrieved</title> 006+ <style type="text/css"><!-- 007+ /* 008+ Stylesheet for Squid Error pages 009+ Adapted from design by Free CSS Templates 010+ http://www.freecsstemplates.org 011+ Released for free under a Creative Commons Attribution 2.5 License 012+ */ 013+ 014+ /* Page basics */ 015+ * { 016+ font-family: verdana, sans-serif; 017+ } 018+ 019+ html body { 020+ margin: 0; 021+ padding: 0; 022+ background: #efefef; 023+ font-size: 12px; 024+ color: #1e1e1e; 025+ } 026+ 027+ /* Page displayed title area */ 028+ #titles { 029+ margin-left: 15px; 030+ padding: 10px; 031+ padding-left: 100px; 032+ background: url('http://www.squid-cache.org/Artwork/SN.png') no-repeat left; 033+ } 034+ 035+ /* initial title */ 036+ #titles h1 { 037+ color: #000000; 038+ } 039+ #titles h2 { 040+ color: #000000; 041+ } 042+ 043+ /* special event: FTP success page titles */ 044+ #titles ftpsuccess { 045+ background-color:#00ff00; 046+ width:100%; 047+ } 048+ 049+ /* Page displayed body content area */ 050+ #content { 051+ padding: 10px; 052+ background: #ffffff; 053+ } 054+ 055+ /* General text */ 056+ p { 057+ } 058+ 059+ /* error brief description */ 060+ #error p { 061+ } 062+ 063+ /* some data which may have caused the problem */ 064+ #data { 065+ } 066+ 067+ /* the error message received from the system or other software */ 068+ #sysmsg { 069+ } 070+ 071+ pre { 072+ font-family:sans-serif; 073+ } 074+ 075+ /* special event: FTP / Gopher directory listing */ 076+ #dirmsg { 077+ font-family: courier; 078+ color: black; 079+ font-size: 10pt; 080+ } 081+ #dirlisting { 082+ margin-left: 2%; 083+ margin-right: 2%; 084+ } 085+ #dirlisting tr.entry td.icon,td.filename,td.size,td.date { 086+ border-bottom: groove; 087+ } 088+ #dirlisting td.size { 089+ width: 50px; 090+ text-align: right; 091+ padding-right: 5px; 092+ } 093+ 094+ /* horizontal lines */ 095+ hr { 096+ margin: 0; 097+ } 098+ 099+ /* page displayed footer area */ 100+ #footer { 101+ font-size: 9px; 102+ padding-left: 10px; 103+ } 104+ 105+ 106+ body 107+ :lang(fa) { direction: rtl; font-size: 100%; font-family: Tahoma, Roya, sans-serif; float: right; } 108+ :lang(he) { direction: rtl; float: right; } 109+ --></style> 110+ </head><body> 111+ <div id="titles"> 112+ <h1>ERROR</h1> 113+ <h2>The requested URL could not be retrieved</h2> 114+ </div> 115+ <hr> 116+ 117+ <div id="content"> 118+ <p>The following error was encountered while trying to retrieve the URL: <a href="http://localhost:8964/get.inc?">http://localhost:8964/get.inc?</a></p> 119+ 120+ <blockquote id="error"> 121+ <p><b>Access Denied.</b></p> 122+ </blockquote> 123+ 124+ <p>Access control configuration prevents your request from being allowed at this time. Please contact your service provider if you feel this is incorrect.</p> 125+ 126+ <p>Your cache administrator is <a href="mailto:hongze@staff.sina.com.cn?subject=CacheErrorInfo%20-%20ERR_ACCESS_DENIED&amp;body=CacheHost%3A%2010.81.254.59%0D%0AErrPage%3A%20ERR_ACCESS_DENIED%0D%0AErr%3A%20%5Bnone%5D%0D%0ATimeStamp%3A%20Tue,%2009%20Nov%202021%2003%3A16%3A49%20GMT%0D%0A%0D%0AClientIP%3A%2010.235.61.14%0D%0A%0D%0AHTTP%20Request%3A%0D%0AGET%20%2Fget.inc%3Ftest%3Dreferer%20HTTP%2F1.1%0AHost%3A%20localhost%3A8964%0D%0AAccept%3A%20*%2F*%0D%0AReferer%3A%20http%3A%2F%2Fwww.refer.er%0D%0AProxy-Connection%3A%20Keep-Alive%0D%0A%0D%0A%0D%0A">hongze@staff.sina.com.cn</a>.</p> 127+ <br> 128+ </div> 129+ 130+ <hr> 131+ <div id="footer"> 132+ <p>Generated Tue, 09 Nov 2021 03:16:49 GMT by 10.81.254.59 (squid/3.1.10)</p> 133+ <!-- ERR_ACCESS_DENIED --> 134+ </div> 135+ </body></html> 136+ " 137+ ===DONE===
1 (50%)
001+ Server is not running 001- *** Testing curl setting referer *** 002- string(19) "http://www.refer.er" 003- ===DONE===