Bert, http://www.andregarzia.com/RevHTTP.zip lots of cgi demos and a web server made in rev. All free and commented.
Cheers andre On Fri, Jul 18, 2008 at 12:44 PM, Bert Shuler <[EMAIL PROTECTED]> wrote: > That was the problem. Once I get the CGI gateway working ill post it > again... just incase someone finds it useful. > > Thanks all! > > Bert > > > On Jul 18, 2008, at 11:34 AM, Bert Shuler wrote: > >> 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 >> Trying 127.0.0.1... >> Connected to localhost. >> Escape character is '^]'. >> GET /env.pl HTTP/1.1 >> Content-type: text/html >> >> <tt> >> 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>_ = >> /Users/bshuler/Sites//env.pl<p>__CF_USER_TEXT_ENCODING = >> 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. >>> >>> 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 >>>>> [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 >>> >>> _______________________________________________ >>> 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 > > > _______________________________________________ > 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 > -- http://www.andregarzia.com All We Do Is Code. _______________________________________________ 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
