Re: CGI and euc

new topic     » goto parent     » topic index » view thread      » older message » newer message

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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu