Automatically Posing fields to another site and redirecting

  • Thread starter Thread starter maflatoun
  • Start date Start date
M

maflatoun

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
 
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top