<div style="font-family: arial; font-size: 14px;"><div fr-original-style="" style="box-sizing: border-box;"><br fr-original-style="" style="box-sizing: border-box;"></div><div fr-original-style="" style="box-sizing: border-box;">Try adding two newlines to the end of your "Content-Type" headers like</div><div fr-original-style="" style="box-sizing: border-box;"><br fr-original-style="" style="box-sizing: border-box;"></div><div fr-original-style="" style="box-sizing: border-box;">print ("Content-Type: text/plain\n\n")</div><div fr-original-style="" style="box-sizing: border-box;" contenteditable="false"><span fr-original-style="" style="box-sizing: border-box;"> </span></div><div fr-original-style="" style="box-sizing: border-box;"><br fr-original-style="" style="box-sizing: border-box;"></div><hr id="previousmessagehr" fr-original-style="" style="box-sizing: border-box; clear: both; user-select: none;"><div fr-original-style="" style="box-sizing: border-box;"><span fr-original-style="" style="box-sizing: border-box;"><strong fr-original-style="" style="box-sizing: border-box; font-weight: 700;">From</strong>: "Boubacar Bah" <bahbouba.909@gmail.com><br fr-original-style="" style="box-sizing: border-box;"><strong fr-original-style="" style="box-sizing: border-box; font-weight: 700;">Sent</strong>: 12/4/22 6:57 PM<br fr-original-style="" style="box-sizing: border-box;"><strong fr-original-style="" style="box-sizing: border-box; font-weight: 700;">To</strong>: mapserver-users@lists.osgeo.org<br fr-original-style="" style="box-sizing: border-box;"><strong fr-original-style="" style="box-sizing: border-box; font-weight: 700;">Subject</strong>: [MapServer-users] asking help</span></div><div fr-original-style="" style="box-sizing: border-box;"><br fr-original-style="" style="box-sizing: border-box;"></div><div dir="ltr" fr-original-style="" style="box-sizing: border-box;">hi everyone i would like to make a cgi proxy for openlayer <span fr-original-style="color:rgb(156,220,254);background-color:rgb(30,30,30);font-family:Consolas,"Courier New",monospace;font-size:14px;white-space:pre;" style="color: rgb(156, 220, 254); background-color: rgb(30, 30, 30); font-family: Consolas, "Courier New", monospace; font-size: 14px; white-space: pre; box-sizing: border-box;">ProxyHost</span>  from ms4w here is the code link of my source code: <a fr-original-style="" href="https://pastebin.com/y32K2qdK" style="box-sizing: border-box; color: rgb(0, 102, 147); text-decoration: underline; user-select: auto;" target="_blank" rel="noopener noreferrer">https://pastebin.com/y32K2qdK</a><br fr-original-style="" style="box-sizing: border-box;">I don't know what is missing in this code.<br fr-original-style="" style="box-sizing: border-box;">when I file error I see the following message:<strong fr-original-style="" style="box-sizing: border-box; font-weight: 700;"> [cgi:error] [pid 6660:tid 224] [client <a fr-original-style="" href="http://127.0.0.1:58543" style="box-sizing: border-box; color: rgb(0, 102, 147); text-decoration: underline; user-select: auto;" target="_blank" rel="noopener noreferrer">127.0.0.1:58543</a>] Premature end of script headers: proxy.cgi</strong><br fr-original-style="" style="box-sizing: border-box;">I do not know what to do anymore; I really need your help<br fr-original-style="" style="box-sizing: border-box;">thank you in advance.</div></div>