Re: Spaces being removed from POST data
- From: "Michel Posseth [MCP]" <MSDN@xxxxxxxxxxx>
- Date: Wed, 10 Jan 2007 21:05:04 +0100
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 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 ***
.
- References:
- Spaces being removed from POST data
- From: Terry Olsen
- Spaces being removed from POST data
- Prev by Date: Re: adding data using DataGridView
- Next by Date: Re: Sorting a list of integers
- Previous by thread: Spaces being removed from POST data
- Next by thread: Wanna to create multiple subdomain in domain
- Index(es):
Relevant Pages
|