Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > How to simulate HTTP POST using headers?

Reply
Thread Tools

How to simulate HTTP POST using headers?

 
 
Luis Faisco
Guest
Posts: n/a
 
      05-08-2004
Hi,

my problem may be trivial but I have been searching for an answer to this on
the web without success. Hope you can help.

This is the scenario: I am making a wizard composed of several steps, each
step being a form with the post method. The first steps may be completed
whether the user is logged on to the website or not. But from a certain step
on the user must be logged on to complete the wizard. What I do is post the
data gathered so far to the logon page; the logon page is essentially an ASP
page with an HTML logon form that posts to itself. Once the user logs on he
is taken again to the wizard, to the step where he left off.

Right now I am using the HTML form / onLoad="form.submit()" approach on the
logon page: after the user is authenticated, the asp page builds a form with
the "saved" data, pointing to the next step of the wizard, and uses the
onLoad event of the body tag to submit the form. And this does what I
intended.

But I believe there must be a more elegant way to do this, and I suspect it
involves setting headers directly using Response.AddHeader but I don't know
how to do it. Am I right? If so, how to do it?

I am using ASP 3.0

Thanks in advance,

Luis Faisco


 
Reply With Quote
 
 
 
 
Aaron Bertrand [MVP]
Guest
Posts: n/a
 
      05-09-2004
You can simulate a post using XMLHTTP (http://www.aspfaq.com/2173) or with
client-side script.

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/


"Luis Faisco" <> wrote in message
news:newscache$yztexh$vb2$ ...
> Hi,
>
> my problem may be trivial but I have been searching for an answer to this
> on
> the web without success. Hope you can help.
>
> This is the scenario: I am making a wizard composed of several steps, each
> step being a form with the post method. The first steps may be completed
> whether the user is logged on to the website or not. But from a certain
> step
> on the user must be logged on to complete the wizard. What I do is post
> the
> data gathered so far to the logon page; the logon page is essentially an
> ASP
> page with an HTML logon form that posts to itself. Once the user logs on
> he
> is taken again to the wizard, to the step where he left off.
>
> Right now I am using the HTML form / onLoad="form.submit()" approach on
> the
> logon page: after the user is authenticated, the asp page builds a form
> with
> the "saved" data, pointing to the next step of the wizard, and uses the
> onLoad event of the body tag to submit the form. And this does what I
> intended.
>
> But I believe there must be a more elegant way to do this, and I suspect
> it
> involves setting headers directly using Response.AddHeader but I don't
> know
> how to do it. Am I right? If so, how to do it?
>
> I am using ASP 3.0
>
> Thanks in advance,
>
> Luis Faisco
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
HTTP SOAP/HTTP GET/HTTP POST milan_9211 Software 0 01-10-2011 02:10 PM
How to enter to .aspx page by http connection using http POST request farazkazmi@gmail.com Java 6 08-29-2005 02:58 PM
hardware needed to simulate 500 vusers(HTTP) using grinder HArolD Java 4 04-14-2005 07:44 AM
how can i simulate my pc as http server by writing java code to send the http response by socketstream to some pc in the internet?! mike Java 5 09-21-2004 02:04 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57