Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7901107
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T09:08:13+00:00 2026-06-03T09:08:13+00:00

I am working on a Web application and need to pass data across HTTP

  • 0

I am working on a Web application and need to pass data across HTTP redirects. For example:

http://foo.com/form.html 

POSTs to

http://foo.com/form/submit.html

If there is an issue with the data, the Response is redirected back to

http://foo.com/form.html?error=Some+error+message

and the query param “error”‘s value is displayed on the page.

Is there any other reliable way to pass data across redirects (ie HTTP headers, etc.).

Passing the data as query params works but isn’t ideal because:

  • its cleartext (and in the query string, so SSL cant be relied on to encyrpt) so I wouldn’t want to pass sensitive data
  • URIs are limited in length by the browser (albiet the length is generally fairly long).

IMPORTANT: This platform is state-less and distributed across many app servers, so I can’t track the data in a server-side session object.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T09:08:14+00:00Added an answer on June 3, 2026 at 9:08 am

    From the client-server interaction point of view, this is a server internal dispatch issue.

    Browsers are not meant to re-post the entity of the initial request automatically according to the HTTP specification: “The action required MAY be carried out by the user agent without interaction with the user if and only if the method used in the second request is GET or HEAD.“

    If it’s not already the case, make form.html dynamic so that it’s an HTML static file. Send the POST request to itself and pre-fill the value in case of error. Alternatively, you could make submit.html use the same template as form.html if there is a problem.

    its cleartext (and in the query string, so SSL cant be relied on to
    encyrpt) so I wouldn’t want to pass sensitive data

    I’m not sure what the issue is here. You’re submitting everything over plain HTTP anyway. Cookie, query parameters and request entity will all be visible. Using HTTPS would actually protect all this, although query parameters can still be an issue with browser history and server logs (that’s not part of the connection, which is what TLS protects).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on a web-application and need to figure out the best way to
I'm working on a web application and need some help with a query. I'm
We've been working on web application where in we need to implement traditional web-apps
I need to have a working web browser in a fullscreen Direct3D application. For
Every time I start working on a new J2EE web application, I need to
I'm working on a new project, a web application, where I need to focus
I am working with a web application where we need to show modal style
I need your advice. We have an already working web resource management application, we
I'm currently working on a web application that might need to push information to
I am working on web application .net 3.5,asp.net,C#. In that i need to provide

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.