runrev adds http header for free?

Mark Schonewille m.schonewille at economy-x-talk.com
Fri Jul 18 10:02:40 EDT 2008


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 BertShuler at yahoo.com
>
> Thanks




More information about the use-livecode mailing list