ma*******@gmail.com wrote:
Hi,
I'm doing a trial with InternetSecure (credit card verification) and it
requires the following step,
Your site connects to InternetSecure and passes us the purchase
information in a
FORM POST;
What's the best way to post 4 fields from ASP.NET (2.0) to another
website?
Thank you
Maz
The quickest way would be to find out if the credit bureau accepts Web
Service requests.
Otherwise you can use the WebClient class and ask the credit bureau whether
it accepts GET requests . This class has the DownLoadData method that
responds with a string response which you would need to parse for the
result. Like so:
Dim client as WebClient
Dim oUTFEncoding As UTF8Encoding
Dim response As String
client = new WebClient
oUTFEncoding - new UTF8Encoding
response = oUTFEncoding.GetString( client.DownLoadData(...here the URL to
credit bureau with parameters ...))
If the credit bureau insists on POST requests, then use the HttpWebRequest
class which allows POST requests.