From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id VAA03124; Thu, 11 Sep 2003 21:44:40 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id VAA25284 for ; Thu, 11 Sep 2003 21:44:39 +0200 (MET DST) Received: from smtp.uc3m.es (smtp01.uc3m.es [163.117.136.121]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id h8BJicf13479 for ; Thu, 11 Sep 2003 21:44:38 +0200 (MET DST) Received: from smtp01.uc3m.es (localhost [127.0.0.1]) by smtp.uc3m.es (Postfix) with ESMTP id 3F7E24322A for ; Thu, 11 Sep 2003 21:44:38 +0200 (CEST) Received: from alcaudon.tsc.uc3m.es (alcaudon.tsc.uc3m.es [163.117.145.35]) by smtp01.uc3m.es (Postfix) with ESMTP id 26D0A99EAE for ; Thu, 11 Sep 2003 21:44:38 +0200 (CEST) Received: from tsc.uc3m.es ([127.0.0.1]) by alcaudon.tsc.uc3m.es (Netscape Messaging Server 4.15) with ESMTP id HL2EU600.T08 for ; Thu, 11 Sep 2003 21:44:30 +0200 From: To: caml-list@inria.fr Message-Id: <7ae77288.72887ae7@tsc.uc3m.es> Date: Thu, 11 Sep 2003 21:44:30 +0200 X-Mailer: Netscape Webmail MIME-Version: 1.0 Content-Language: es Subject: Re: [Caml-list] escape characters in a cgi parameter X-Accept-Language: es Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=0.2 required=5.0 tests=NO_REAL_NAME,QUOTED_EMAIL_TEXT,X_ACCEPT_LANG version=2.55 X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) X-DCC-Servercave-Metrics: alcaudon 1183; IP=ok Body=1 Fuz1=1 Fuz2=1 X-TSC-Mailscanner-Ver: XMailScanner Rev 2.0 X-TSC-Mailscanner-Ref: alcaudon.tsc.uc3m.es Thu Sep 11 21:44:36 2003 X-TSC-Mailscanner-Status: clean X-TSC-Mailscanner-Checksum: iD8DBQE/YNClnasc8ml271URAsDSAKDMGej55p43Hlii29XaBP/2e/A9MQCgnXis rvpywFeWj6zBucSDmoUxwSI= =3GZ9 X-TSC-Mailscanner-Checksum-Version: GnuPG v1.2.0 (SunOS) X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 freshmeat:01 dbi:99 threads:01 caml-:01 faq:01 faq:01 beginner's:01 beginners:01 bin:01 ltd:98 ocaml:01 caml:01 caml:01 groups:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Thanks Richard!! You was right. Escape characters is very easy. You must put the character % and then the ASCII number in hexadecimal. For example, if you want to escape the character =, you must write %3D (3D is the ASCII number of the character = in hexadecimal) > On Thu, Sep 11, 2003 at 06:53:16PM +0200, amata@tsc.uc3m.es wrote: > > > > > > Hi list. > > > > I?m using the CGI library in order to receive arguments in a > CGI > > application. I use the function "parse_arguments" for parse the > CGI > > arguments. > > > > My problem is; when I receive the cgi parameters, if one of > the > > parameters include one of this characters: = or & the function > > parse_arguments returns one exception. I must escape the > characters = > > and &, but how can I do that? Anybody knows how to escape > characters > > in a cgi parameter? > > Yes, you should certainly escape these characters, and more. Look on > Google for information about "percent escaping" and "url escaping". > > BTW have you tried using mod_caml for your scripts? > (http://merjis.com/developers/mod_caml/) > > Rich. > > -- > Richard Jones. http://www.annexia.org/ http://freshmeat.net/users/rwmj > Merjis Ltd. http://www.merjis.com/ - all your business data are > belong to you. > PTHRLIB is a library for writing small, efficient and fast servers > in C. > HTTP, CGI, DBI, lightweight threads: > http://www.annexia.org/freeware/pthrlib/ > ------------------- > To unsubscribe, mail caml-list-request@inria.fr Archives: > http://caml.inria.frBug reports: http://caml.inria.fr/bin/caml- > bugs FAQ: http://caml.inria.fr/FAQ/ > Beginner's list: http://groups.yahoo.com/group/ocaml_beginners > ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners