Re: Creating POST data for Server.Transfer()?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



David Veeneman wrote:
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


I have replied to this in a different newsgroup.

If you make a proper cross post instead of posting separate copies, you will get a single thread instead of separate confused threads.
.



Relevant Pages

  • Re: Newbie with a smallbiz2000 installation, check my config?
    ... > Windows creates a profile path under Documents & Settings. ... > a folder with that name already exists (maybe a local user with the ... > server, open the properties for this folder, and ensure that you have ... > you redirect key folders from a user's profile to a location on your ...
    (microsoft.public.backoffice.smallbiz2000)
  • Re: How to intercept error when httpRuntime maxRequestLength is ex
    ... "Hermit Dave" wrote in message ... > client side javascript and http module which could be helpful.. ... > To redirect the client your server has to send back a response. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Folder Redirection Desktop to multiple servers %HOMESHARE%
    ... Windows server 2003 lets you redirect the desktop to a share (is that what ... BTW if you use DFS without File Replication the data will live only on the ... > which would not work (I dont want to preplicate the traffic and not doing ...
    (microsoft.public.windows.group_policy)
  • Re: Fixing URL redirect exploit at /exchweb/bin/auth/owaauth.dll
    ... can be fixed by hard-coding the redirect to your server external IP/domain ... logon.asp) and can be accessed directly from the internet of an OWA server. ... PCI is virtually impossible. ...
    (microsoft.public.windows.server.sbs)
  • Re: How to intercept error when httpRuntime maxRequestLength is ex
    ... Jos's comments of using a secondary progress window on the client to ... HttpRequest request = HttpContext.Current.Request; ... To redirect the client your server has to send back a response. ...
    (microsoft.public.dotnet.framework.aspnet)