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 *** 1 1851
Terry
You are probably not posting to the website but concate a request string
example : -) http://www.google.nl/search?hl=nl&q=...G=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" <to******@hotma il.comschreef in bericht
news:uW******** *****@TK2MSFTNG P06.phx.gbl...
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 ***
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Jason |
last post by:
Here's the code I'm using:
####################################
import os, string
for root, dirs, files in os.walk('/home/_Comedy'):
for file in files:
str = os.path.dirname(file)
print root, str.strip(), "/", file.strip()
####################################
|
by: Nathan Sokalski |
last post by:
I am using ASP to read code from a text file that I am displaying on my
page. Because I do not want the code from the text file to be executed, I
used the Server.HTMLEncode() method to display it as it is in the file.
However, the spaces used to indent lines is still removed by the browser. I
cannot use VBScript's replace function to replace all spaces with
because that would replace all spaces, including ones that I do not want...
|
by: Sergey Poberezovskiy |
last post by:
Hi,
I have a simple enumeration in my schema:
<xs:element name="el_1">
<xs:simpleType>
<xs:restiction base="xs:string">
<xs:enumeration value="value and space 1"/>
<xs:enumeration value="value2 with spaces"/>
...
|
by: Thelma Lubkin |
last post by:
I am trying to limit the user's options to the choices offered by the
combobox text, but I don't want this to extend to how he spaces out
the text, e.g.
'abcdefg' and 'ab cd efg'
should be equivalent. I know how to compare strings to see whether
they meet this criterion--I don't know how to let the combobox know
that this is what I want.
I am thinking of dealing w/ this in the NotInList_event, but I don't
know how to get to the...
|
by: gopal srinivasan |
last post by:
Hi,
I have a text like this -
"This is a message containing tabs and white spaces"
Now this text contains tabs and white spaces. I want remove the tabs
and white spaces(if it more than once between two words).
Is there any function we have in C which will find out the tabs and
white spaces and returns the text in the follwong way -
| |
by: mattdaddym |
last post by:
Hi,
I have an asp .net application that writes textboxes from a form into a
sql database. The code is very simple. The .text property of the
textbox is written to the database or loaded back. After the new
revision of my site I have a seemingly random problem where users are
reporting so of the text they are typing has the spaces removed when
they reload their data later. For example:
The quick brown fox jumped over the fence.
|
by: Xah Lee |
last post by:
Tabs versus Spaces in Source Code
Xah Lee, 2006-05-13
In coding a computer program, there's often the choices of tabs or
spaces for code indentation. There is a large amount of confusion about
which is better. It has become what's known as “religious war” —
a heated fight over trivia. In this essay, i like to explain what is
the situation behind it, and which is proper.
|
by: David |
last post by:
Sent this to alt.php a couple of days back, but doesn't look like I'll
get an answer, so trying here.
I'm trying to convert a script to use friendly URLs, I've done this
before, but my PHP skills are quite basic so far, far from proficient
at this.
..htaccess file-
DirectoryIndex default.php index.asp index.html index.htm index.php
|
by: MLH |
last post by:
In an earlier post today, it was mentioned that dbl-spaces
caused alignment-justification problems when printing labels.
I've never noticed this in reports except for those meant for
the production of labels. I routinely embed multiple spaces in
strings - sometimes 3, 4 or 5 to achieve a desired effect in the
printed output. I do it in footers and in textboxes elsewhere
mostly. Hardly ever in label-type controls, but sometimes.
It...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |