@Lilith thanks for your response. A little background; this is a legacy asp.net web application. I say legacy, but in truth its just old - very old. After a little investigating today, it looks like Authorize.net wants me to use WebClient.OpenWrite as opposed to WebClient.OpenRead. Below is the code in question:
StringBuilder uri = new StringBuilder("?x_delim_data=True");
string gatewayUrl = "https://secure.authorize.net/gateway/transact.dll";
string versionNumber = "3.1";
BankResponse br = new BankResponse( _payment );
/*
Some code to build the uri string
*/
WebClient wc = new WebClient();
// Build the uRI
string Uri = gatewayUrl + uri.ToString();
try
{
// Perform the web GET operation
StreamReader sr = new StreamReader(wc.OpenRead(Uri));
br.GenericResponseCode = GenericResponseTypes.MAPError;
br.BankData = sr.ReadToEnd();
/*
Code to interpret the response
*/
} catch (Exception e) {....}
return br;
My question now is, how can I implement OpenWrite and still get the response code this method requires?