POST or GET method?
<p>We have a service provider that allows us to connect to his payment page for payments, however the code he uses is php but we would like to do it in asp.net.</p>

<p>Problem is I don't really understand what the method should be, <code>POST</code> or <code>GET</code>, basically we need to redirect to the client with underlying parameters(not query strings) and then our current page that calls the request must be redirected to the client page with the parameters as well.</p>

<p>I do get the response witch is basically markup, but that's not what I want, I want it to redirect to the payment page, can someone please tell me what I do wrong.Thanks
Here is my code I use for the <code>POST</code> Method:</p>

<pre><code>string query = string.Format("description={0}&amp;amount={1}&amp;merchantIdent={2}&amp;email={3}&amp;transaction={4}&amp;merchantKey={5}",
                             description.ToString(), amount.ToString(), merchantIdent.ToString(), email.ToString(), id.ToString(), merchantKey.ToString());

// Create the request back
string url = "https://www.webcash.co.za/pay";
HttpWebRequest req = (HttpWebRequest)WebRequest.Create(url);

req.Method = "POST";
req.AllowAutoRedirect = true;
req.ContentType = "application/x-www-form-urlencoded";
req.ContentLength = query.Length;
req.AllowAutoRedirect = true;

StreamWriter stOut = new StreamWriter(req.GetRequestStream(),System.Text.Encoding.ASCII);
stOut.Write(query);
stOut.Close();

// Do the request
StreamReader stIn = new StreamReader(req.GetResponse().GetResponseStream());
string response = stIn.ReadToEnd();
stIn.Close();
</code></pre>
