Spaces being removed from POST data

T

Terry Olsen

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top