ok, I thought that was only used when using the URL keyword.
I am simply writing to a socket.
How would rev even know I was intending to write http?


On Jul 18, 2008, at 10:02 AM, Mark Schonewille wrote:

Hi Bert,

You can set the httpHeaders property. E.g. the User-Agent. There's lots of information in the list archives and of course you need to check the docs.

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
http://economy-x-talk.com
http://www.salery.biz

Benefit from our inexpensive hosting services. See http://economy-x-talk.com/server.html for more info.

On 18 jul 2008, at 15:57, Bert Shuler wrote:

I wanted to write a quick http server, mostly just to learn rev.

It was very easy, and I am happy so far, but I have a mystery I hope someone can help me with.
My code is here: http://www.mediafire.com/?jbldjj0ogck

It seems that when I write the data back out to to the socket, runrev adds a http header on its own, and I cant add the one I want.
Really weird.

When I have it execute this perl script, you can see the problem:

#!/usr/bin/perl

print "Content-type: text/html\n\n";
print "<tt>\n";
foreach $key (sort keys(%ENV)) {
  print "$key = $ENV{$key}<p>";
}

Also, I am open to advice on my coding, but please if it is bashing me, send that directly to me at [EMAIL PROTECTED]

Thanks

_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to