Re: Spaces being removed from POST data

Tech-Archive recommends: Fix windows errors by optimizing your registry




Terry

You are probably not posting to the website but concate a request string

example : -)

http://www.google.nl/search?hl=nl&q=michel%20posseth%20post%2Fget&btnG=Zoeken&meta=

a space is represented by %20 so this should solve your problem

However easier would be to perform a urlencode on the complete string , a
receiving webserver wil automaticly decode the string ( no extra code is
necesary )


regards

Michel


"Terry Olsen" <tolsen64@xxxxxxxxxxx> schreef in bericht
news:uW4uiiNNHHA.420@xxxxxxxxxxxxxxxxxxxxxxx
Using the HttpWebRequest to post data for a query, the input tag that
i'm mimicking is:

<input type "hidden" name="severity" value="'SEV 2', 'SEV 5'">

I'm using this for making the query via HttpWebRequest POST method:

... & _
"&severity='SEV 2', 'SEV 5'" & _
... & _

This returns an empty result set. Looking at the html that was returned,
I see this:

<input type="hidden" name="severity" value="'SEV2','SEV5'">

Why is it removing the spaces in my 'SEV 2', 'SEV 5' items?

I've tried using &nbsp; instead of the spaces, but that causes a server
error.

If I remove the severity property from the POST data, I get all the
records returned.

Can anyone shed some light on this?

Thanks.

*** Sent via Developersdex http://www.developersdex.com ***


.



Relevant Pages

  • Re: Combining Records into one Text Box
    ... Database, but when I import the Module over (Named: Concate), and run the ... Function fConcatFld(stTable As String, _ ... Instead of having a recordset result in my form, ...
    (microsoft.public.access.formscoding)
  • Re: enum item from string
    ... Enum EggTypes ... Public Sub OrderEggs(Request as String) ... 'myCookStyle based on the Request String ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Strings.. Objects or not???
    ... > We know that the immutability of a string can take more time when we concate ... > know that it can take even more time than we maybe think to create a string. ... immutability also speeds things up as you don't need ... can cost time and save time, ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Strings.. Objects or not???
    ... > We know that the immutability of a string can take more time when we concate ... > know that it can take even more time than we maybe think to create a string. ... immutability also speeds things up as you don't need ... can cost time and save time, ...
    (microsoft.public.dotnet.framework)
  • Re: Good Book on Parsing Strings?
    ... Request string that I am receiving. ... There are many books that treat this subject a bit mathematically, e.g., ...
    (comp.lang.c)