PassMark Logo
Home » Forum

Using POST instead of GET

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • crichard
    Junior Member
    • Oct 2006
    • 12

    #1

    Using POST instead of GET

    Hi

    I use Zoom v4 (boss doesn't want to upgrade) and am trying to implement it in .NET MVC using C#.

    I do not want to use querystrings in my url (sort of scraps the MVC clean urls). Is it possible to use POST values instead? How would I go about that?

    Code:
    var psi = new System.Diagnostics.ProcessStartInfo();
    psi.FileName = HttpContext.Current.Server.MapPath("/Scripts/search/" + sLang + "/search.cgi"); 
    [B]psi.EnvironmentVariables["REQUEST_METHOD"] = "GET";
    psi.EnvironmentVariables["QUERY_STRING"] = sSearch;[/B]
    psi.EnvironmentVariables["REMOTE_ADDR"] = HttpContext.Current.Request.ServerVariables["REMOTE_ADDR"]; 
    psi.RedirectStandardInput = false;
    psi.RedirectStandardOutput = true;
    psi.UseShellExecute = false;
    Process proc = Process.Start(psi);
    proc.StandardOutput.ReadLine();
            	
    string zoom_results = proc.StandardOutput.ReadToEnd();
    proc.WaitForExit();
    Thanks
  • David
    Administrator
    • Dec 2004
    • 4714

    #2
    You should post in the V4 forum, rather than the V6 forum. I will move your post.

    We don't support V4 anymore, but in short there is no easy way to use POST. It would break too many things, like the page navigation links at the bottom of the search results.

    Comment

    Working...