Ask the Expert

How can an ASP.NET Web app collect info and send it to another site via SSL using an HTTPS POST?

I am working on an e-commerce Web site using the ASP.NET code behind approach, and I want to send information on a secure SSL Web site for credit card verification using the POST method. I also do not want to lose RunAt server. Please tell me way how can I solve this problem.
It sounds to me like you are developing an ASP.NET Web application that collects the credit card information and then sends it to another site via SSL using an HTTPS POST. If this is the case, you will want your site to run under HTTPS as well, because you don't want clients transmitting credit card information to your site unless it's encrypted. There's no work required for the code-behind code. All the data is encrypted by the browser and decrypted on the Web server before it gets to your code. Now, if your site is the one processing the information, you're ready to go. If you need to forward data to another site for processing and that site is accessed via HTTPS POSTs, then you have some work to do. You'll need to simulate what a browser would do to send the data to the credit card processing site. You can do this using the System.Net.HttpWebRequest class.

This was first published in May 2004

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: