Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>You can't really "forward" a POST on, like you're wanting to do (in your OP). The client has to initiate the POST to your ASP page(s) (which the code in your second post is doing).</p> <hr> <p>Here's the self-POSTing code from your own reply so you can mark an answer, like you suggested:</p> <pre><code>public class RemotePost{ private System.Collections.Specialized.NameValueCollection Inputs = new System.Collections.Specialized.NameValueCollection() ; public string Url = "" ; public string Method = "post" ; public string FormName = "form1" ; public void Add( string name, string value ){ Inputs.Add(name, value ) ; } public void Post(){ System.Web.HttpContext.Current.Response.Clear() ; System.Web.HttpContext.Current.Response.Write( "&lt;html&gt;&lt;head&gt;" ) ; System.Web.HttpContext.Current.Response.Write( string .Format( "&lt;/head&gt;&lt;body onload=\"document.{0}.submit()\"&gt;" ,FormName)) ; System.Web.HttpContext.Current.Response.Write( string .Format( "&lt;form name=\"{0}\" method=\"{1}\" action=\"{2}\" &gt;" , FormName,Method,Url)) ; for ( int i = 0 ; i&lt; Inputs.Keys.Count ; i++){ System.Web.HttpContext.Current.Response.Write( string .Format( "&lt;input name=\"{0}\" type=\"hidden\" value=\"{1}\"&gt;" ,Inputs.Keys[i],Inputs[Inputs.Keys[i]])) ; } System.Web.HttpContext.Current.Response.Write( "&lt;/form&gt;" ) ; System.Web.HttpContext.Current.Response.Write( "&lt;/body&gt;&lt;/html&gt;" ) ; System.Web.HttpContext.Current.Response.End() ; } } </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload