Hunan Unicom issued a welfare C # It will earn MB of monthly traffic for you to go home for the Chinese New Year,

Source: Internet
Author: User

Hunan Unicom issued a welfare C # It will earn MB of monthly traffic for you to go home for the Chinese New Year,

How can I do this when I go home for the Chinese New Year without traffic? Here I will teach you how to earn 150 yuan of traffic a month. Haha, first download the UNICOM client. I only have one android mobile phone, and I cannot use android only, there is a pleasant sharing in it. There are several pictures showing the traffic I have earned.

After reading the figure above, we will surely understand why we can earn the traffic. By signing in every day, we can earn about 10 MB if the character is very high, I pulled a m one time. if manual operations on the day are too troublesome and you may not be so worried about it, here we will teach you how to use C # To earn traffic for us.

 

Now we are playing the leading role.

First, Login

        private Boolean Login() {            String Result = "";            net.Url = "http://www.hn165.com/index.php?s=/users/login/back_url/L2luZGV4LnBocD9zPS91c2Vycy9pbmRleA==";            net.PostData = "account=" + Account + "&password=" + PassWord + "&remember=1&back_url=%2Findex.php%3Fs%3D%2Fusers%2Findex";            net.Method = NetHelper.RequestMethod.POST;            net.Referer = "http://www.hn165.com/index.php?s=/users/login/back_url/L2luZGV4LnBocD9zPS91c2Vycy9pbmRleA==";            Result = Utils.UnicodeToString(net.SendRequest());            if (Result.StartsWith("-1")) {                return false;            }            Log.Write(Result, "debug.txt");            if (Result.Contains("\"status\":1")) {                IsLogin = true;                return true;            }            return false;        }

Sign-in code

        private String Sign() {            if (!IsLogin) { Login(); }            net.Url = "http://www.hn165.com/index.php?s=/users/signin/back_url/L2luZGV4LnBocD9zPS9pbmRleA==/auto_signin/1";            net.Method = NetHelper.RequestMethod.GET;            String Result = net.SendRequest();            Result = Utils.GetValue(Result, "<div class=\"mg10-1 t-center\">", "</div>");            Log.Write(Result, "debug.txt");            return Result;        }

Code pulling, which can be pulled three times a day,

        private String LaBa() {            if (!IsLogin) { Login(); }            net.Url = "http://www.hn165.com/index.php?s=/huodong/laba_getval&_=" + Utils.GetUnixTime();            net.Method = NetHelper.RequestMethod.GET;            String Result = Utils.UnicodeToString(net.SendRequest());            Log.Write(Result, "debug.txt");            return Result;        }

Red envelopes

        private String HongBao() {            if (!IsLogin) { Login(); }            net.Url = "http://www.hn165.com/index.php?s=/huodong/hongbao_action/5131";            net.Method = NetHelper.RequestMethod.GET;            String Result = Utils.UnicodeToString(net.SendRequest());            Log.Write(Result, "debug.txt");            return Result;        }

 

Now, let's make it work for us every day and earn traffic. I made it a windows Service and hung it on a server.

Mom no longer worries that I have no traffic

 

-- Happy sea

Blog: http://www.cnblogs.com/ningqhai/

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.