473,773 Members | 2,345 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

login in to Orkut

1 New Member
Hi all,

I a beginner in to asp.net and learning to use httpwebrequest. I am trying to login to orkut.com using the following code.... but unfortunatly i am unable to login to it

Can some one please help me by correcting the code....

Thanks in advance...
Expand|Select|Wrap|Line Numbers
  1. Dim cookieJar As CookieContainer = New CookieContainer
  2.         Dim webReq As HttpWebRequest
  3.         Dim webResp As HttpWebResponse
  4.         Dim sr As StreamReader
  5.         Dim sw As StreamWriter
  6.         Dim payLoad As String
  7.         Dim txt As String
  8.         Dim urlstring As String = "http://www.orkut.com"
  9.         Dim uristring As String = ""
  10.  
  11.         webReq = CType(WebRequest.Create(New Uri(urlString)), HttpWebRequest)
  12.         webReq.CookieContainer = cookieJar
  13.         webReq.Credentials = CredentialCache.DefaultCredentials
  14.         webReq.UserAgent = "BGClient"
  15.         webReq.KeepAlive = True
  16.         webReq.Headers.Set("Pragma", "no-cache")
  17.         webReq.Timeout = 5000
  18.         webReq.Method = "GET"
  19.  
  20.         ' get login page
  21.         webResp = webReq.GetResponse
  22.  
  23.         sr = New StreamReader(webResp.GetResponseStream)
  24.         txt = sr.ReadToEnd.Trim
  25.         sr.Close()
  26.         webResp.Close()
  27.  
  28.         webReq = CType(WebRequest.Create(New Uri(urlString & uriString)), HttpWebRequest)
  29.         webReq.CookieContainer = cookieJar
  30.         webReq.Credentials = CredentialCache.DefaultCredentials
  31.         webReq.UserAgent = "BGClient"
  32.         webReq.KeepAlive = True
  33.         webReq.Headers.Set("Pragma", "no-cache")
  34.         webReq.Timeout = 5000
  35.         webReq.Method = "POST"
  36.         webReq.ContentType = "application/x-www-form-urlencoded"
  37.  
  38.         payLoad = "Login=admin&Password=fuck&submit=Login&Validation Req=1&WhichBrowser=Microsoft+Internet+Explorer&pgB rowserVersion=4.0+(compatible;+MSIE+6.0;+Windows+N T+5.1;+.NET+CLR+1.1.4322;+.NET+CLR+1.0.3705)"
  39.  
  40.         webReq.ContentLength = payLoad.Length
  41.         sw = New StreamWriter(webReq.GetRequestStream)
  42.         sw.Write(payLoad)
  43.         sw.Close()
  44.  
  45.         ' post login parms
  46.         webResp = webReq.GetResponse
  47.  
  48.         sr = New StreamReader(webResp.GetResponseStream)
  49.         txt = sr.ReadToEnd.Trim
  50.         MsgBox(txt)
  51.         sr.Close()
  52.         webResp.Close()
Oct 15 '09 #1
1 2550
Frinavale
9,735 Recognized Expert Moderator Expert
You aren't using ASP.NET.
It looks like you're developing a windows desktop application.... ..
Oct 16 '09 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
1218
by: Blmn | last post by:
anybody knows how star buttons on gmail work? or friend-rates on orkut? they use the same technic. it should be some sort of connection between c# and javascript. any article or tips would be appreciated
1
1413
by: Fabiano | last post by:
Please, someone know how can i do a background postback, such as the "Friend Karma" at Orkut? Tks in adv. Fabiano
6
3361
by: AppleBag | last post by:
I'm having the worst time trying to login to myspace through code. Can someone tell me how to do this? Please try it yourself before replying, only because I have asked this a couple of times in the past in other places, and while the help was much appreciated, it seemed everyone just wanted to 'theoretically' explain how to do it, but when I tried to do it myself, I couldn't login. I want to simply pass the email address and password to...
1
2706
by: Soby | last post by:
Hi, Is there any orkut api for .net users .Plese send reply its very urgent Soby/-
4
5354
by: hsn22 | last post by:
im trying to log into orkut so i can do some things on the page. but im having trouble logging into the orkut page. this is as far as i have come (yay!) this is the link that logs people into orkut. it takes two values through the fields "Email" and "Passwd". then after calling ServiceLoginAuth, redirects to the orkut home page if the input is correct. so i tried to post the values into Email and Passwd using urllib's urlencode function....
9
2679
bajajv
by: bajajv | last post by:
Hi, I am having problem in accessing gmail and orkut. It gives The page cannot be displayed. The ssl 2.0 and ssl 3.0 are enabled. I am having xp sp2. Any idea how it can be solved? Thanks.
7
1518
dmjpro
by: dmjpro | last post by:
Hi Experts. I m now days doing test on ORKUT JS code. I need your help experts. Now there are multiple forms in a page. But no actions are there. Now when the page is submitted then this function called.
10
1854
by: jodleren | last post by:
Hi I know, that there are a lot of people having problems with orkut.com, errors like "object expected" and named objects missing. When loading the site can generate some 10 errors, and still just leave a blue page - seems like it heavily rely on JS. Still, me and friends having problems and orkut seems just to ignore it. I am sure, that other poeple have problems, and I really wonder what
13
4175
by: Apostle | last post by:
Hi all, after thinking for sometimes, I thought it will be great opportunity to learn if I will start from scratch and build my own register/login system. Here is the thread that I will be posting the progress and I hope you guys will help me. The code below is what I have so far. Just put two scripts in the same directory and that is! I hope you will help me Thanks! class.php <?php //php login sytem class LoginRegister{ function...
0
10264
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10106
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10039
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9914
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7463
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5355
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5484
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4012
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3610
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.