Cheating Network
 
 

Go Back   Cheating Network > Programming > Bot Makers
Reload this Page [Help] Using Web Request.



Bot Makers

This is a discussion about [Help] Using Web Request. within the Bot Makers section, where you will These are the public forums for bot makers to interact with others! Got an idea for a bot and don't know how to make it into code? Post it here!



Reply
 
LinkBack Thread Tools Display Modes
Old 09-09-2009, 05:02 PM   #1 (permalink)
Senior Member
 
SKy Scripter's Avatar
 
Join Date: Jun 2008
Posts: 191
Reputation: 56
SKy Scripter will become famous soon enough

cBay Rating:
Default [Help] Using Web Request.

Okay well, I just started using csharp to make a facebook add friends bot.

so far my code is....


please help me fix my code...
also i want to be able to change elements and click elements not just postdata...

it's really the first time i have messed with webrequest.

idhttp is a lot easier -.-


Code:
            string lcUrl = "http://www.facebook.com/login.php";

            HttpWebRequest loHttp = (HttpWebRequest)WebRequest.Create(lcUrl);



            // *** Send any POST data

            string lcPostData = "email=myemail@email.com&pass=mypass";


            loHttp.Method = "POST";

            byte[] lbPostBuffer = System.Text.Encoding.GetEncoding(1252).GetBytes(lcPostData);

            loHttp.ContentLength = lbPostBuffer.Length;
            Stream loPostData = loHttp.GetRequestStream();
            loPostData.Write(lbPostBuffer, 0, lbPostBuffer.Length);
            loPostData.Close();
            HttpWebResponse loWebResponse = (HttpWebResponse)loHttp.GetResponse();
            Encoding enc = System.Text.Encoding.GetEncoding(1252);
            StreamReader loResponseStream = new StreamReader(loWebResponse.GetResponseStream(), enc);
            string lcHtml = loResponseStream.ReadToEnd();
            richTextBox1.Text = lcHtml;
            loWebResponse.Close();
            loResponseStream.Close();
SKy Scripter is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 09-09-2009, 05:55 PM   #2 (permalink)
Programmer
 
Join Date: Apr 2008
Posts: 1,567
Reputation: 255
Bomb is a jewel in the roughBomb is a jewel in the roughBomb is a jewel in the rough

cBay Rating:

Theta The Internet 

Send a message via AIM to Bomb Send a message via MSN to Bomb Send a message via Skype™ to Bomb
Default

Go get the PostSubmitter class online, will simplify everything
__________________

SovietParty for my Contact Information.
Bomb is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-09-2009, 09:55 PM   #3 (permalink)
Crazy Moderator
 
Slashmolder's Avatar
 
Join Date: Dec 2007
Posts: 5,065
Reputation: 420
Slashmolder is just really niceSlashmolder is just really niceSlashmolder is just really niceSlashmolder is just really niceSlashmolder is just really nice

cBay Rating:

S7 Scrivener Epsilon 

Send a message via AIM to Slashmolder Send a message via MSN to Slashmolder
Default

Http Post in C#

Also, you cant interact with elements with webrequests, it's pretty much just like sockets, it's just sending raw data. You'll have to send data back and forth to act liek it.
__________________
If I helped you, or just made you laugh, add to my Rep.
If you feel generous: Donate!
Quote:
Originally Posted by sc4fpse View Post
This just in: scaf is jealous of Slashmolder.
Slashmolder is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
request, web


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Bot Request ddh1122 Bot Makers 0 03-19-2009 04:13 PM
Request for bot obama15 Public Bot / Exploit Releases 5 03-13-2009 06:06 PM
bot request yotohenn Bot Makers 10 03-10-2009 03:11 PM
bot request mikeyyy44805 Bot Makers 7 03-04-2009 03:19 PM
[Request] VH1 BOT. zero Bot Makers 16 10-14-2008 08:26 PM




Powered by vBulletin
Copyright © 2000-2008 Jelsoft Enterprises Limited.
Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.