Start New Discussion within our Software Development Community

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

http://proxy-zone.net/add-proxy-server/

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();
        MessageBox.Show(((HttpWebResponse)response).StatusDescription);

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

        webBrowser1.DocumentText = responseFromServer;
        MessageBox.Show(((HttpWebResponse)response).StatusDescription);

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

Thanks.

This question has already been answered. Start a new discussion instead.