D
David Veeneman
I want to programmatically create some POST data on a web server, then pass
that data to another web page that the server calls, using
Server.Transfer(). What's the best way to do that?
I'm programming some buttons that link to PayPal's shopping cart. The
shopping cart needs a bunch of data about the item being added, including
price. PayPal's sample markup puts the data in a hidden form, which the
button submits.
I'm concerned about the lack of security in that approach, so I want to have
the button invoke a method on the server that will assemble the POST data
that PayPal needs, and then redirect to PayPal. Right now I have a 'button
dispatch' page, which contains the data assembly and redirect
(Server.Transfer()) code in its Page_Load event.
What I can't figure out is how to get the POST data into the Request the
page will submit when it redirects to PayPal. What's the simplest way to do
this? Are there any examples? Thanks much.
David Veeneman
Foresight Systems
that data to another web page that the server calls, using
Server.Transfer(). What's the best way to do that?
I'm programming some buttons that link to PayPal's shopping cart. The
shopping cart needs a bunch of data about the item being added, including
price. PayPal's sample markup puts the data in a hidden form, which the
button submits.
I'm concerned about the lack of security in that approach, so I want to have
the button invoke a method on the server that will assemble the POST data
that PayPal needs, and then redirect to PayPal. Right now I have a 'button
dispatch' page, which contains the data assembly and redirect
(Server.Transfer()) code in its Page_Load event.
What I can't figure out is how to get the POST data into the Request the
page will submit when it redirects to PayPal. What's the simplest way to do
this? Are there any examples? Thanks much.
David Veeneman
Foresight Systems