Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7633945
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T07:01:55+00:00 2026-05-31T07:01:55+00:00

I might be trying to do something impossible or really hard, but I wanted

  • 0

I might be trying to do something impossible or really hard, but I wanted to try it out anyway. I have been working on writing a program that can automatically downvote Stack Overflow posts for me.

So, my logical first step was to find out what went on behind the scenes when I pressed the downvote button. I used a HTTP network analyzer to see how the browser communicates to the server that I want to downvote. This is what it showed me.

Downvote details

Then I figured I should be able to remotely downvote it if I write a C# program that sends an HTTP request identical to the one I sent when I pressed the downvote button. So I came up with this:

WebRequest req = WebRequest.Create("http://stackoverflow.com/posts/3905734/vote/3");
req.Method = "POST";
req.ContentType = "application/x-www-form-urlencoded";
req.ContentLength = 37;

req.Headers.Add("Request", "POST /posts/3905734/vote/3 HTTP/1.1");
req.Headers.Add("Accept", "application/json, text/javascript, */*; q=0.01");
req.Headers.Add("X-Requested-With", "XMLHttpRequest");
req.Headers.Add("Referer", "http://stackoverflow.com/questions/3905734/how-to-send-100-000-emails-weekly");
req.Headers.Add("Accept-Language", "en-us");
req.Headers.Add("Accept-Encoding", "gzip, deflate");
req.Headers.Add("User-Agent", "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0; MAAU)");
req.Headers.Add("Host", "stackoverflow.com");
req.Headers.Add("Connection", "Keep-Alive");
req.Headers.Add("Cache-Control", "no-cache");
req.Headers.Add("Cookie", "__utmc=140029553; __utma=140029553.1661295586.1330352934.1331336368.1331402208.44; __utmz=140029553.1331159433.33.7.utmcsr=meta.stackoverflow.com|utmccn=(referral)|utmcmd=referral|utmcct=/users/153008/cody-gray; __qca=P0-1737884911-1330352934366; usr=t=TJUTES9CakOu&s=f3MgHSwW2EWk; km_ai=91003; km_uq=; km_lv=x; km_ni=91003; __utmb=140029553.17.10.1331402208");

var requestMessage = Encoding.UTF8.GetBytes("fkey=abfd538253d7ca1e988f306ea992eda0");
var strm = req.GetRequestStream();
strm.Write(requestMessage, 0, requestMessage.Length);
strm.Close();

var rep = req.GetResponse();
strm = rep.GetResponseStream();
var rdr = new StreamReader(strm);
string responseFromServer = rdr.ReadToEnd();
Console.WriteLine(responseFromServer);
rdr.Close();
strm.Close();
Console.Read();

There were some headers that it would not let me write. For the headers Accept, Referer, User-Agent and Connection, it threw an error like this:

This header must be modified using the appropriate property or method.

and the Host header caused this error:

The ‘Host’ header cannot be modified directly.

I just commented out the headers that were causing trouble, optimistically hoping that it would still work anyway, but I got back this message from the server

{"Success":false,"Warning":false,"NewScore":0,"Message":"","Refresh":false}

The "Success":false seemed to indicate that it was not successful in downvoting the post, and I went to the page and it had the same vote count as it did before I ran the program. In other words, my program didn’t work.

Does anybody know if I’m on the right path, what I can do to make it work, or if it’s even possible to make it work?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T07:01:56+00:00Added an answer on May 31, 2026 at 7:01 am

    You might not consider this an answer, but I do; what you are trying to do is considered abuse of the system. We do not provide an API for that for many reasons, and trying to reverse engineer something that is not part of a published API is … obnoxious.

    Thanks for posting your security cookies. I will thus hit a button to log you out of SE, to protect your account from abuse. You will be able to log back in as normal.

    We reserve the right to be frankly downright childish and puerile if you insist on trying to abuse the system; we’re always happy to introduce extra hoops and hurdles, randomly change the API, etc if we believe you are trying to do nasty things. Or just suspend the account or block network access.

    Allow me to summarise: we don’t really want you doing this.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to load an image in memory but might have memory issues
This might sound a silly question but I've really spend hours in trying to
This might be a little bit odd question, but Im trying to figure out
I'm trying to do something that might seem strange but that makes sense. I
Im trying to make something like an Rpg game atm but im really stuck
Folks, I'm new to Scala and am trying to figure something out. I've been
I fairly new to JQuery and perhaps trying to achieve something that might be
Trying to find examples of when decorators might be really beneficial, and when not
I know this might be a bit awkward but I am trying to modify
I'm trying something new, I would normally do this in C# or VB. But

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.