Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] Netscape vs Iexplore and parsing

From: philippe1:legoff:francetelecom at: 19-Mar-2002 9:22

Hi, rebolers, I'm a newbye with Rebol and I try some scripts on 1/ For example, I try a example cgi-bin script. (cgiformobj.r) This is the body script : print "Content-Type: text/plain^/" ;-- Required Page Header cgi-form: make object! [ ;-- Default form values. Nom: "Pas de nom" Pass: "Password" Annee: now/year ] cgi: make cgi-form decode-cgi system/options/cgi/query-string print [ <html> <body bgcolor="orange"> <center> <h1>"Resultats cgi-reb"</h1> "Nom : " <B> cgi/Nom </B><P> "Password : " <B> cgi/Pass </B><P> "Date : " <B> cgi/Annee </B><P> </center> </body> </html> ] this script runs well, with apache 1.3.12 or IIS 5, and Iexplore 5.5 , but NOT with Netscape 4.5 where the browser response is : <html> <body bgcolor="orange"> <center> <h1>"Resultats cgi-reb"</h1> .... etc in line not interpreted by the browser. I suppose it's a problem with CR or LF (I'm on Windows) . Is someone could help me ? 2/ Parsing : I want to parse a html file with anchors like <a href="equipes/affectations.php?projet_id=8"> TEST</a> How could I get the data TEST with parsing ? It's probably very easy for reb-gurus, so thanks for help, Philippe