Forum Moderators: open

Message Too Old, No Replies

POST data without using a form?

         

topr8

2:13 pm on Dec 2, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



classic asp.

is it possible to send POST data from an asp page?

senario: asp page is a click through counter of a sort, but i then want to redirect to another website.

i could do a simple redirect but i wish to hide the querystring, i thought i could do this possibly by POST in some way, possibly not ...

any pointers

i feel sure i should be able to send post headers to the new domain, i must be searching wrong because all i can find is how to do it with a webform

Easy_Coder

2:22 pm on Dec 2, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



have you tried dropping the values to a cookie then doing your re-direct?

topr8

2:25 pm on Dec 2, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



i want to send the values to the different domain/website without using a querystring (eg. hiding them)

the cookie idea is great for the same site but not for transfering info to a new site.

dataguy

5:01 pm on Dec 3, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You could post them from the server using XMLHTTP or something similar, but the user will not be redirected to the site, they will remain on your page.

Or you could do a form without a submit button, and javascript submit when the page is loaded, which would redirect your user and post the variables without them visible in the querystring. The variables would be in the page source, though.

topr8

11:32 am on Dec 12, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



thanks, i'm going to have to plot this out another way i think.