string uriString="
http://otherapp/yourcfpage.cfm";
// Create a new WebClient instance.
WebClient myWebClient = new WebClient();
string postData = "name=value&name2=value2...etc"; //POST data here
myWebClient.Headers.Add("Content-Type","application/x-www-form-urlencoded");
// Apply ASCII Encoding to obtain the string as a byte array.
byte[] byteArray = Encoding.ASCII.GetBytes(postData);
// Upload the input string using the HTTP 1.0 POST method.
byte[] responseArray = myWebClient.UploadData(uriString,"POST",byteArray);
string responseText= Encoding.ASCII.GetString(responseArray));
--
Site:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com
Short urls & more:
http://ittyurl.net
WebBuilder451 said:
Thanks for the reply,
I did read this posting, but did not see how it would help me integrate my
dot.net site with another site with an alternate technology. I may be missing
something, but i'm not integrating with UPS. Both sites were written by me
one is dot.net the other is ColdFusion each has fairly sophistacated logon
services that i can not be access directly one from the other. My hope is to
create an HTTP post to the other with login values, I can use get with a
popup window, but that means passing url parameters.
Is there a specific section of the ups site that shows how to do this that
does not need appily to only ups?
Again, i appreciate your response and am gratful for any help you can provide