runrev adds http header for free?
Mark Smith
mark at maseurope.net
Fri Jul 18 11:16:48 EDT 2008
Could it be that the browser is expecting 2 crlfs after the header,
while 2 lfs are all that's being written?
Even if the perl script is producing crlfs, Rev tends to convert
crlfs to lfs unless you specifically prevent it.
Perhaps it would help if you inserted the line:
replace lf with crlf in buffer
before writing it out to the socket.
I'm fairly sure that Rev would not be adding spurious headers - I
think it's only libUrl that would have that capability, and I'm sure
it's better behaved than that, even if it's installed in your cgi setup.
Best,
Mark
On 18 Jul 2008, at 15:27, Bert Shuler wrote:
> The header written by perl shows as html in the browser, because
> rev somehow added a header.
>
>
> On Jul 18, 2008, at 10:21 AM, Mark Schonewille wrote:
>
>> Hi Bert,
>>
>> Maybe I don't understand what is going on without looking at your
>> code. At which point do you see unwanted http headers? When you
>> write data to perl or when you read the data into rev? Is it
>> possible that Perl adds the headers, since you're using "print
>> "Content-type: text/html\n\n";"? Maybe you want "print "Content-
>> type: text/plain\n\n";".
>>
>> --
>> 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 16:05, Bert Shuler wrote:
>>
>>> 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?
>>>
>>
>> _______________________________________________
>> use-revolution mailing list
>> use-revolution at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
More information about the use-livecode
mailing list