-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 John,
John Pedersen wrote: | Can anyone suggest how I can forward a post using servlets? [snip] | Then, depending on which button the user clicks, I want to forward the user | on to google/paypal using POST, adding the parameters such as cart, | signature. This is typically called a "man-in-the-middle attack". ;) Seriously, though, you'll have to build the POST manually. Look at the java.net.HttpURLConnection class. You could also look at HttpClient (http://hc.apache.org/httpcomponents-client/index.html), which encapsulates a lot of what you want to do. Just remember that if you decide to act as a proxy like this, you will have top handle a lot of things like cookie-passing, etc. in order to do it properly. Perhaps there's a better API for you to use than their user-facing web-based one... such as a SOAP or REST API where a lot of those issues are removed. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkfiaE8ACgkQ9CaO5/Lv0PAAVgCffK5ZwvwMZwMVXcDsF295MqjJ GC0AoKJOK1s4TMfT/fUDUatijBn9c/OB =mlDx -----END PGP SIGNATURE----- --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]