Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: <amata@tsc.uc3m.es>
To: caml-list@inria.fr
Subject: Re: [Caml-list] escape characters in a cgi parameter
Date: Thu, 11 Sep 2003 21:44:30 +0200	[thread overview]
Message-ID: <7ae77288.72887ae7@tsc.uc3m.es> (raw)


  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


             reply	other threads:[~2003-09-11 19:44 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-11 19:44 amata [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-09-11 16:53 amata
2003-09-11 17:43 ` Richard Jones

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7ae77288.72887ae7@tsc.uc3m.es \
    --to=amata@tsc.uc3m.es \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox