Writing to database before HTTP POST

  • Thread starter Thread starter Erik
  • Start date Start date
E

Erik

I'm building an e-commerce app. I need to write the user's
order data to a SQL Server database before sending the
order data to the credit card processor's secure server
(which is a different domain) via an HTTP POST.

I have the database routines working, but haven't figured
out how to send the form data to the credit card
processor's domain as an HTTP POST. Neither
Response.Redirect (doesn't retain the HTTP POST format) or
Server.Transfer (doesn't work across domains) work.

What am I missing?
 
You need to create a request yourself, not modify the incoming one.
For that purpose you can use the System.Net.HttpRequest class.
 

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