Help Logging into MySpace with VB6
Help Logging into MySpace with VB6
Help Logging into MySpace with VB6
Help Logging into MySpace with VB6
Help Logging into MySpace with VB6
Help Logging into MySpace with VB6 Help Logging into MySpace with VB6 Help Logging into MySpace with VB6 Help Logging into MySpace with VB6 Help Logging into MySpace with VB6 Help Logging into MySpace with VB6 Help Logging into MySpace with VB6 Help Logging into MySpace with VB6
Help Logging into MySpace with VB6 Help Logging into MySpace with VB6
Help Logging into MySpace with VB6
Go Back  Xtreme Visual Basic Talk > > > Help Logging into MySpace with VB6


Reply
 
Thread Tools Display Modes
  #1  
Old 12-05-2007, 01:58 AM
21Outlaw 21Outlaw is offline
Freshman
 
Join Date: Apr 2004
Location: Inola, OK
Posts: 27
Default Help Logging into MySpace with VB6


Hey all, I'm currently trying to login to myspace using VB6. I'm having quite some trouble figuring out the login process and hope you guys wouldn't mind helping me out.

I've downloaded the LiveHTTPHeaders plugin for FireFox to follow the header information.

I've downloaded this component for VB6: wodHttpDLX.exe because I was told its much easier to work with because Winsock is a pain in the *** when it comes to cookies.

I've got the rest of the program functioning, I just need to figure out how to properly login to myspace and figure out if the login was successful or not.

I know this isn't really asking anything yet but would someone mind giving me a stepping stone to start with here (past what I've done already)?

Last edited by 21Outlaw; 12-05-2007 at 08:42 AM.
Reply With Quote
  #2  
Old 12-05-2007, 03:31 AM
the master's Avatar
the master the master is offline
Tachikoma
 
Join Date: Mar 2003
Location: Mansfield, UK
Posts: 4,596
Default

If you are using winsock then adding cookies isnt all that hard.

Depending on what you expect from this the Inet control might help. It does have some cookie support (not sureh ow much though).

I have to ask the question. Why do you want to login to myspace through VB6?

Please read the Posting Guidelines. Especially number 11
__________________
"That which seems simple is often overlooked" ~ me
Halloween 2014 Yard Haunt
Halloween Special FX
Reply With Quote
  #3  
Old 12-05-2007, 08:20 AM
Robert Collins Robert Collins is offline
Contributor
 
Join Date: May 2004
Posts: 695
Default

Using VB 6 to login to My Space or any Web Site is basically the same. It is quite common to build a VB program to do these logins. I do it all the time for all my online credit card accounts, Ebay, Yahoo Chess, even here at www.xtremevbtalk. I just don't like having to go through all the B.S. of having to enter my ID, password, and whatever else it takes just to get to the place I need to get to. So I make VB programs to do all the preliminary steps for me. Some places require more steps than others so I just have to deal with each place on a seperate basis. You need to know each and every step it takes to login to any place where you have an account. See what you have to do manually first then take each step and create code to do it automatically. I can't tell you how to do My Space since I don't go there I do not know the required steps. In some cases I use Winsock and in other cases I use the WebBrowser Control depending on the site. In any event what I usually wind up with is a one-click that gets me to the exact page (automatically going through each page to get there) I need. For example: One of my credit card accounts. I click on a button and zippo I am at the account statements page. Doing this manually would mean I would have to go through several pages entering this info and that info.

Last edited by Robert Collins; 12-05-2007 at 08:26 AM.
Reply With Quote
  #4  
Old 12-05-2007, 08:47 AM
21Outlaw 21Outlaw is offline
Freshman
 
Join Date: Apr 2004
Location: Inola, OK
Posts: 27
Default

Quote:
Originally Posted by the master View Post
If you are using winsock then adding cookies isnt all that hard.

Depending on what you expect from this the Inet contro l might help. It does have some cookie support (not sureh ow much though).

I have to ask the question. Why do you want to login to myspace through VB6?

Please read the Posting Guidelines. Especially number 11
There I took care of that link to that .exe and I believe I'm in compliance with forum rules now. Sorry about the mistake.

My program, first, will start off as something like Robert Collins has described. And hopefully once its fully functional I'll add more functionality to it, such as becoming a stand-alone myspace client.

I don't mind research. So where do you guys suggest I start? By reading up on HTTP headers or what? I'm at a crossroads right now and don't know what my next step should be.
Reply With Quote
  #5  
Old 12-05-2007, 10:13 AM
Robert Collins Robert Collins is offline
Contributor
 
Join Date: May 2004
Posts: 695
Default

Let's take Ebay for example. Here is what I have to do if I do it manually:

1) Open up IE and enter www.ebay.com
2) Home page comes up ----> Click on Community tab upper right corner
3) Click on Dissusion Forums
4) Scroll down and click on Computers, Networking & I.T.
5) Main page comes up ----> Click on SignIn image
6) Enter user ID and password (now what is that password? oh gee, I forgot)
7) Click on the SignIn button
8) Now I am at the desired page I want.

It took me seven steps to get to the page where I want to be.

Well, the heck with that.

So, I decide to make a VB program so that all I have to do is to click on a single button and whamo I am at the desired page (Step 8).

I put a WebBrowser Control on a Form.

In the Form_Load event I do the following:
Code:
Option Explicit
Dim SignedIn As Boolean
  '
  '
  '
Private Sub Form_Load()
 SignedIn = False
 WebBrowser1.Navigate "https://signin.ebay.com/ws/eBayISAPI.dll?SignIn"
End Sub
  '
  '
  '
Now in the WebBrowser1_DocumentComplete:

Code:
Private Sub WebBrowser1_DocumentComplete(ByVal pDisp As Object, URL As Variant)
 Dim HTMLData As String
 
 HTMLData = WebBrowser1.Document.documentelement.innerhtml 'get html code

 '
 ' Just in case it does this
 '
 If InStr(HTMLData, "You've signed out") <> 0 Then Form_Load
 
 If InStr(URL, "https://signin.ebay.com/ws/eBayISAPI.dll?SignIn") <> 0 Then
   If Not SignedIn Then
     WebBrowser1.Document.All("userID").Value = my_user_ID
     WebBrowser1.Document.All("pass").Value = my_password
     SignedIn = True
    End If
 End If

 If SignedIn Then
   WebBrowser1.Navigate "http://forums.ebay.com/db1/forum.jspa?forumID=12"
   SignedIn = False
 End If
End Sub
And in the WebBrowser1_TitleChange Event just so the title bar shows the discussion board that I am in:
Code:
Private Sub WebBrowser1_TitleChange(ByVal Text As String)
 If InStr(Text, "Computers") <> 0 Then
   Caption = Text
 End If
End Sub
Here's what happens:

When I run the program the SignIn page comes up with my user id and password already embedded in the textboxes on the document page. All I have to do is click on the SignIn button and zippo I am now at the Computers, Networking & I.T. Discussion Board ready to go.

This is a customized program just for this situation only. But the principal is the same for other Web Sites I need to go to like one of my credit card accounts but the actual code will vary.

You need to figure out what takes place when you sign in manually taking note of the steps and especially the URLs involved in each step. In my example I bypassed all URLs and only did two of them; the signin page and the URL to the actual page I want to go to.

I also had to parse the HTML pages looking for the textboxes that are used to hold the user id and password and noting their names so I could use that in my code.
Reply With Quote
  #6  
Old 12-05-2007, 10:48 AM
Robert Collins Robert Collins is offline
Contributor
 
Join Date: May 2004
Posts: 695
Default

BTW: Here are the names you will need if you do a similar VB like my example:

The name of the textbox for your Email:

"ctl00$Main$SplashDisplay$ctl00$Email_Textbox"


The name of the textbox for your password:

"ctl00$Main$SplashDisplay$ctl00$Password_Textbox"
Reply With Quote
  #7  
Old 12-05-2007, 04:52 PM
the master's Avatar
the master the master is offline
Tachikoma
 
Join Date: Mar 2003
Location: Mansfield, UK
Posts: 4,596
Default

Can i just ask. Whats wrong with ticking "remember me"? You have to do even less clicks then. Personally i dont see why you should need to make a program to do this. Most sites have a remember me tickbox. IE and other browsers have a feature to remember your details and didnt google make an auto form filler?

I definately wouldnt use this to login to my bank account. Sure its annoying having to enter user IDs and passwords then select characters from combo boxes but all that security is there for a reason. If someone gets to your PC then you are offering them 1 click access to everything
__________________
"That which seems simple is often overlooked" ~ me
Halloween 2014 Yard Haunt
Halloween Special FX
Reply With Quote
  #8  
Old 12-05-2007, 05:09 PM
21Outlaw 21Outlaw is offline
Freshman
 
Join Date: Apr 2004
Location: Inola, OK
Posts: 27
Default

Robert Collins,

Thanks for the help, it kinda gave me a small understanding of what I'm doing but I'm trying to do this without a browser control on my form. I'm trying to do it all via POST/GET. I know that MySpace uses the POST method so I've done a little bit of research today so far and I think I've made some headway. I'll post the code a little later this evening.
Reply With Quote
  #9  
Old 12-05-2007, 06:04 PM
Robert Collins Robert Collins is offline
Contributor
 
Join Date: May 2004
Posts: 695
Default

Quote:
Originally Posted by the master View Post
Can i just ask. Whats wrong with ticking "remember me"? You have to do even less clicks then. Personally i dont see why you should need to make a program to do this. Most sites have a remember me tickbox. IE and other browsers have a feature to remember your details and didnt google make an auto form filler?

I definately wouldnt use this to login to my bank account. Sure its annoying having to enter user IDs and passwords then select characters from combo boxes but all that security is there for a reason. If someone gets to your PC then you are offering them 1 click access to everything
Master,

You are absolutely correct. And don't think that I didn't give thought to what you are suggesting. In the cases like Ebay, Yahoo, here, and other on-line forums where I am a member I don't give any priority to them since they are just membership clubs and would offer nothing to gain by anyone. I virtually have nothing to lose.

In the cases like my on-line accounts there is still a security factor that would still stop anyone but myself from continueing. The program simply puts me at the point where i need to be to enter the security question which is not automated and allows me to continue onto the rest of my account. Even in the unlikely event someone did gain access there is still nothing anyone would be able to find out. Even I cannot see my account number (you know, the account number of my credit card) because on-line banks never reveal it even to the owner. This is built in security because they have no guarantee whatsoever that I am the one accessing my own account.

I once asked myself what if someone was able to gain access to one of my credit card on-line accounts. What would I stand to lose. What could they do. I came up blank. Accessing my accounts does nothing but pays the amount due. They couldn't draw out money. They couldn't make a transaction. They couldn't copy my CC number. They couldn't transfer funds. The only thing that they, me, or anyone could do would be to make a payment.

Outside of this someone else would further have to have access to my PC (another unlikely event) which it by itself is password protected.

Yes, I could use "remember me" or "remeber this computer" like you mentioned but I have no on-line CC account or IE itself that remebers my ID and password for these on-line CC accounts. Even Ebay, which I only use for going to the discussion board forces me to enter my password at the discussion board entry. Yes, when I first type in www.ebay.com it says Welcome Robert. Not you then please sign in. But that doesn't get me into the discussion board. I still have to enter my password later.

If I only had one or two online CC accounts I probably wouldn't bother with a program. But I have many and it's a big waste of time bumping through all the up front BS which has nothing to do with security; they are advertizment pages, promotional pages, and the click here to enter a sweepstake. Too much BS. I just simply bypass all that and get to the page I need.
Reply With Quote
  #10  
Old 12-25-2007, 04:20 PM
colsouth colsouth is offline
Newcomer
 
Join Date: Dec 2007
Posts: 3
Default

tell me your not writing an appliaction to keep you logged into myspace :P :P

merry xmas
Reply With Quote
Reply


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 Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
Help Logging into MySpace with VB6
Help Logging into MySpace with VB6
Help Logging into MySpace with VB6 Help Logging into MySpace with VB6
Help Logging into MySpace with VB6
Help Logging into MySpace with VB6
Help Logging into MySpace with VB6 Help Logging into MySpace with VB6 Help Logging into MySpace with VB6 Help Logging into MySpace with VB6 Help Logging into MySpace with VB6 Help Logging into MySpace with VB6 Help Logging into MySpace with VB6
Help Logging into MySpace with VB6
Help Logging into MySpace with VB6
 
Help Logging into MySpace with VB6
Help Logging into MySpace with VB6
 
-->