![]() |
| |||||||
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 (permalink) |
| Senior Member Join Date: Jun 2008
Posts: 191
Reputation: 56 ![]() cBay Rating: | 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();
|
| | |
| Sponsored Links | |
| | #3 (permalink) |
| Crazy Moderator | 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! |
| | |
![]() |
| Tags |
| request, web |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
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 |