runrev adds http header for free?
bertshuler at yahoo.com
Fri Jul 18 11:34:41 EDT 2008
Mark, I think your on to something.
I think my web browser is not recognizing my header, and live http
headers is lieing to me.
I ran this test, and it seems to disprove the free runrev header idea.
telnet 127.0.0.1 8080
Connected to localhost.
Escape character is '^]'.
GET /env.pl HTTP/1.1
Apple_PubSub_Socket_Render = /tmp/launch-JAC787/Render<p>COMMAND_MODE
= legacy<p>DISPLAY = /tmp/launch-bf8cAs/:0<p>HOME = /Users/
bshuler<p>LOGNAME = bshuler<p>PATH = /usr/bin:/bin:/usr/sbin:/
sbin<p>PWD = /Applications/Revolution Studio/2.9.0-
gm-1<p>SECURITYSESSIONID = 620680<p>SHELL = /bin/bash<p>SHLVL =
1<p>SSH_AUTH_SOCK = /tmp/launch-YZYPQ5/Listeners<p>TMPDIR = /var/
folders/B1/B1LJiAyjGNuOhekZm3xRKE+++TI/-Tmp-/<p>USER = bshuler<p>_ = /
0x1F5:0:0<p>Connection closed by foreign host.
On Jul 18, 2008, at 11:16 AM, Mark Smith wrote:
> 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.
> 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
>>> 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:
>> use-revolution mailing list
>> use-revolution at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
More information about the Use-livecode