Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Oct : Re: Where did the +-sign go?

www.cryer.info
Managed Newsgroup Archive

Re: Where did the +-sign go?

Subject:Re: Where did the +-sign go?
Posted by:"Remy Lebeau (TeamB)" (no.spam@no.spam.com)
Date:Wed, 31 Oct 2007 15:52:59

"José Montebarra" <Jose.Montebarra@MontebarraLtd.uk> wrote in message
news:47289681$1@newsgroups.borland.com...

> Where did the +-sign go?

'+' has special meaning to HTTP.  It is the encoded form of a space
character, in places where reserved characters must be encoded in order to
be transmitted correctly.

> Could anyone explain why in a web-app using WebBroker:
<snip>
> +-sign is converted to space

Because it is supposed to be.

> why and what am I supposed to do to preserv the +-sign?

You have to specify it in its hex-encoded format, ie:

    ClientId=%2B46705954365

"2B" is the 2-digit hex code of the "+" character.

The same rule goes for any other characters that HTTP reserves, such as '?'
and '#'.


Gambit

Replies:

none

In response to:

www.cryer.info
Managed Newsgroup Archive