PassMark Logo
Home » Forum

Announcement

Collapse
No announcement yet.

Using POST instead of GET

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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

  • #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...
    X