I need to duplicate a form like this one:
I thank you very much in advance!
asked Aug 14 '14 at 06:08
The simplest way to duplicate the HTTP POST is via the PostUrlEncoded method, which takes two arguments: a URL and an HttpRequest object. The URL is the form's action. In this case the form action is "http://sumdomain.domain.ro/directory", which is already a full URL. If the form action is only a relative path, then you must use add the domain to make it a full URL. For example, if the form action is "/directory", and the HTML containing the form is located on "somedomain.domain.ro", then the full url would be "http://somedomain.domain.ro/directory". If you need SSL/TLS, then simply use "https://" in the URL.
Each of the "input" fields corresponds to a parameter in the HttpRequest object. Prior to calling PostUrlEncoded, construct your HttpRequest object:
Chilkat.HttpRequest req = new Chilkat.HttRequest(); req.AddParam("link-back","http://sumdomain.domain.ro/directory"); req.AddParam("submit-disclaimer","Yes"); ...
answered Aug 18 '14 at 10:16