× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Try replacing "&" with "%26" in your URL

Chris

-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Lopez, Andrew
Sent: Monday, October 10, 2005 12:49 PM
To: midrange-l@xxxxxxxxxxxx
Subject: Concatenation with "&" in string....

We need to build a web address to pass to STRPCCMD.   We can build
"start
http://server/csesc/csoe?cmd=CI&amppid=CV_KIT&ampuid=ADMIN&ampqty=2";. 

The values prefixed with ampersands are not CL variables, but text we
have
inserted as shown above.

Under debug we can see that the URL string is complete, but that doesn't
seem to be what the browser receives:  it always end up with
"http://server/csesc/csoe?cmd=CI";.  We can substitute percentage signs
for
the ampersands and the whole string gets passed to the browser.  Having
any
ampersand causes the URL to be cut off at that point.   This appears to
happen with the start command, as from a command window with the same
string
I get:
'amppid' is not recognized as an internal or external command, operable
program or batch file.
'ampuid' is not recognized as an internal or external command, operable
program or batch file.
'ampqty' is not recognized as an internal or external command, operable
program or batch file.

The URL typed into a web browser works fine, which leads me to believe
that
it isn't a problem with escaping the ampersand (and using either &#38 or
&amp doesn't seem to resolve the problem), but the start command not
being
dumb enough to pass on the string without trying to parse it into
separate
commands at each ampersand.  

Anybody deal with this before?



As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.