DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Evan K. Stone Guest

    Possible to Simulate Form Posts?

    Is there a way to simulate a Form Post? Right now, I'm redirecting the user,
    but information appears in the QueryString that I don't want visible. How
    can I redirect the user without putting data in the QueryString? Can I
    create a "virtual form" and submit it? If so, which Objects & Methods should
    I use?

    Thanks!

    Evan K. Stone
    Web Developer
    Multimedia Live
    Petaluma, CA
    ------------------------------------------
    http://www.mmlive.com
    mailto:evan@NOSPAMmmlive.com
    (remove 'NOSPAM' to reply via e-mail)




  2. #2
    Sergey Guest

    Re: Possible to Simulate Form Posts?


    I don't think it's possible because you're sending a HTTP response to the
    browser, and the browser then send a HTTP request by using URL that was in
    the redirect header.
    Have you tried using cookies? Write your data to cookie then redirect and
    the redirected page will read the cookie.

    Sergey.

    "Evan K. Stone" <evan@NOSPAMmmlive.com> wrote:
    >Is there a way to simulate a Form Post? Right now, I'm redirecting the user,
    >but information appears in the QueryString that I don't want visible. How
    >can I redirect the user without putting data in the QueryString? Can I
    >create a "virtual form" and submit it? If so, which Objects & Methods should
    >I use?
    >
    >Thanks!
    >
    >Evan K. Stone
    >Web Developer
    >Multimedia Live
    >Petaluma, CA
    >------------------------------------------
    >http://www.mmlive.com
    >mailto:evan@NOSPAMmmlive.com
    >(remove 'NOSPAM' to reply via e-mail)
    >
    >
    >



  3. #3
    T. Bradley Dean Guest

    Re: Possible to Simulate Form Posts?

    It wouldn't be too hard to make a component in Visual Basic that could do
    that for you. Then just call the component from within the ASP.

    Sergey <skats@newworldsys.com> wrote in message
    news:38ee6690$1@news.devx.com...
    >
    > I don't think it's possible because you're sending a HTTP response to the
    > browser, and the browser then send a HTTP request by using URL that was in
    > the redirect header.
    > Have you tried using cookies? Write your data to cookie then redirect and
    > the redirected page will read the cookie.
    >
    > Sergey.
    >
    > "Evan K. Stone" <evan@NOSPAMmmlive.com> wrote:
    > >Is there a way to simulate a Form Post? Right now, I'm redirecting the

    user,
    > >but information appears in the QueryString that I don't want visible. How
    > >can I redirect the user without putting data in the QueryString? Can I
    > >create a "virtual form" and submit it? If so, which Objects & Methods

    should
    > >I use?
    > >
    > >Thanks!
    > >
    > >Evan K. Stone
    > >Web Developer
    > >Multimedia Live
    > >Petaluma, CA
    > >------------------------------------------
    > >http://www.mmlive.com
    > >mailto:evan@NOSPAMmmlive.com
    > >(remove 'NOSPAM' to reply via e-mail)
    > >
    > >
    > >

    >




  4. #4
    Dev Ashish Guest

    Re: Possible to Simulate Form Posts?

    Are you using the Get method or the Post method? Post method won't display
    anything in the Querystring by design, but you also can't transfer the
    Request.Form collection to a redirected page. If you are using IIS 5, you
    can check out Server.Execute to work around the Redirect problem.

    -- Dev

    Evan K. Stone wrote in message <38ee4b68$1@news.devx.com>...
    :Is there a way to simulate a Form Post? Right now, I'm redirecting the
    user,
    :but information appears in the QueryString that I don't want visible. How
    :can I redirect the user without putting data in the QueryString? Can I
    :create a "virtual form" and submit it? If so, which Objects & Methods
    should
    :I use?
    :
    :Thanks!
    :
    :Evan K. Stone
    :Web Developer
    :Multimedia Live
    :Petaluma, CA
    :------------------------------------------
    :http://www.mmlive.com
    :mailto:evan@NOSPAMmmlive.com
    remove 'NOSPAM' to reply via e-mail)
    :
    :
    :



Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links