Try adding two newlines to the end of your "Content-Type" headers like

print ("Content-Type: text/plain\n\n")

----------------------------------------
From: "Boubacar Bah" <bahbouba....@gmail.com>
Sent: 12/4/22 6:57 PM
To: mapserver-users@lists.osgeo.org
Subject: [MapServer-users] asking help

hi everyone i would like to make a cgi proxy for openlayer ProxyHost  from ms4w 
here is the code link of my source code: https://pastebin.com/y32K2qdK
I don't know what is missing in this code.
when I file error I see the following message: [cgi:error] [pid 6660:tid 224] 
[client 127.0.0.1:58543] Premature end of script headers: proxy.cgi
I do not know what to do anymore; I really need your help
thank you in advance.
_______________________________________________
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to