Re: CGI and euc
- Posted by bugmagnet Jan 14, 2013
- 2318 views
Works with this:
<html> <head> <script src="http://localhost:8088/cgi/suck.exe?argument=nothing%20particular" type="text/javascript"></script> </head> <body> </body> </html>
-- suck.ex (suck eggs) --puts(1, "HTTP/1.0 200 OK\r\nContent-type:text/javascript\r\n\r\n" ) puts(1, "Content-Type: text/javascript\r\n\r\n" ) puts(1, "console.log('QUERY_STRING=" & getenv("QUERY_STRING") & "');\r\n")
And the console in Chrome says
QUERY_STRING=argument=nothing%20particular
So what's the issue with "HTTP/1.0 200 OK\r\n"?
Bugmagnet