[thelist] ASP posting form data

Tab Alleman Tab.Alleman at RealMetros.com
Tue Aug 14 09:34:11 CDT 2001


Wouldn't a quick little:  Server.URLEncode(strXML) take care of it?  (or
would it be HTMLEncode?)

But yes, now that I know the other dynamics of the project (returning
xml data from a second party), I'd recommend MSXML parser.

-----Original Message-----

Well, you'd have to do some encoding... which half-defeats the purpose
of
posting rather than using querystrings. Otherwise, you'd get stuff like
this:

<input type="hidden" name="xmlPostData" value="<xml...>
<product id="5">
	<qty sum="24">
		<qtyitem value="11">
		<qtyitem value="13">
	</qty>
</product>
<product id="85">
	...
</product>
">

I'm sure you can see how the quotes and >'s would wreak havoc on the
hidden form field.

To the original poster...
Tell me, do you have anything available to you other than ASP? or, do
you
have a component available, or the resources to purchase one, which is
able to make HTTP requests?

To me, it looks like you either:
1.Use a component (you could even use MS's XML parse, I believe) to make
a
POST request to the destination
2.Write teh post request yourself with Java or some other language.

I'd go for #1, personally.


hth,



--
mattwarden
mattwarden.com


---------------------------------------
For unsubscribe and other options, including
the Tip Harvester and archive of TheList go to:
http://lists.evolt.org Workers of the Web, evolt ! 




More information about the thelist mailing list