I have website proxy-zone.net and there you can add proxy on this link:


I made simple web bot that should POST proxy and add it in database. But it wont POST because my website checks if backlink exist on remote proxy website. And I make sure backlink exist and when I add it manually it works but POST method can't add it because it simply doesn't wait few seconds that my website go through checkings.
here is code:

HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://proxy-zone.net/add-proxy-server/index.php");
        request.Method = "POST";
        string postData = "POSTDATA=proxy=http://chemialove.tk&speed=&country=USA";
        byte[] byteArray = Encoding.UTF8.GetBytes(postData);
        request.ContentType = "application/x-www-form-urlencoded";
        request.ContentLength = byteArray.Length;
        Stream dataStream = request.GetRequestStream();
        dataStream.Write(byteArray, 0, byteArray.Length);

        WebResponse response = request.GetResponse();

        // Get the stream containing content returned by the server.
        dataStream = response.GetResponseStream();
        StreamReader reader = new StreamReader(dataStream);
        string responseFromServer = reader.ReadToEnd();

        webBrowser1.DocumentText = responseFromServer;

        if (responseFromServer.Contains("added"))
            MessageBox.Show("Success! The proxy has been sent to be approved.");


Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.