using (var http = new Http())
{
http.SocksHostname = hostname" ;
http.SocksPort = Port ;
http.SocksVersion = 5 ;
http.SocksUsername = username ;
http.SocksPassword = password ;
http.SendCookies = true ;
http.SaveCookies = true ;
http.CookieDir = "memory" ;
HttpResponse resp ;
using (var req = new HttpRequest())
{
req.HttpVerb = "GET" ;
req.ContentType = "application/x-www-form-urlencoded";
req.AddParam("name", name)
resp = http.PostUrlEncoded("site.com/signup/", req) ;
req.HttpVerb = "POST" ;
req.AddParam("email", email) ;
resp = http.PostUrlEncoded("site.com/signup/", req);
if (resp.BodyStr.Contains("captcha"))
{
req.HttpVerb = "GET";
var captcha = Pars(resp.BodyStr, "type=(.*?)\\\\");
resp = http.PostUrlEncoded("site.ru/captcha?type=" +captcha, req) ;
/*---------------------------------------------*/
In the end, I get a request - site.ru/captcha?type=captcha&email=email
When should I receive - site.ru/captcha?type=captcha
Why are not parameters evaluated after every request?