I want to avoid exposing my parameters to the world when making a request using GET method. RRS feed

  • Question

  • User1856501791 posted


    Our application is like, based upon request to the web service (.asmx page), the response will be the url to which it has to redirect to aspx page. So we are using Http 302 redirect. My question is  how we can pass parameters to the redirect  page without passing parameters as query string in url. Following code which am using

    HttpContext.Current.Response.StatusCode = 302;

    HttpContext.Current.Response.Status = "302 Found";

    HttpContext.Current.Response.RedirectLocation = "http://localhost:58619/webservice/RequestForm.aspx?AssocID=" + AssocID + "&VendorID=" + VendorID";

    I need to display content of http://localhost:58619/webservice/RequestForm.aspx page under requested url. Instead of passing parameters in this url, is there any way to pass the parameters to the aspx page without using query string. If it is possible, how we can read these parameters at the destination page?

    Please provide some example code for this

    Thanks in advance

    Monday, May 6, 2013 2:32 AM

All replies

  • User-851967432 posted

    Well, cookies or cache might work for you.

    Monday, May 6, 2013 2:59 PM
  • User-488622176 posted

    Or you could just encrypt your parameters, much easier :-)

    Monday, May 6, 2013 3:47 PM