Weird login problem.

Discussion in 'Code Snippets and Tutorials' started by Pankirk, May 6, 2007.

  1. Pankirk

    Pankirk Level III

    Joined:
    Nov 12, 2006
    Messages:
    652
    Likes Received:
    28
    Location:
    America
    Hopefully someone can help me. Ok, Im making a program for my school, and what it does is logs into the website and gives you what your grade is. Now I already did everything else (getting the grades and stuff) but I cant seem to get the login correctly 0_x. This is what I have but when I do it it sells me im loged in as guest.

    Soo I have everything correct i think 0_x. Yeah any help would be appreciated.
     
  2. the_skip

    the_skip Level IV

    Joined:
    Dec 25, 2006
    Messages:
    2,354
    Likes Received:
    1
    Location:
    Indiana
    txtuser.text and txtpass.text not txtuser and txtpass
     
  3. omgcat

    omgcat Level IV

    Joined:
    Jan 31, 2007
    Messages:
    1,137
    Likes Received:
    0

    txtuser and txtpass works for me..
     
  4. Pankirk

    Pankirk Level III

    Joined:
    Nov 12, 2006
    Messages:
    652
    Likes Received:
    28
    Location:
    America
    Yeah im pretty sure thats not the problem. The only reason you would put that is because its more readable.
     
  5. the_skip

    the_skip Level IV

    Joined:
    Dec 25, 2006
    Messages:
    2,354
    Likes Received:
    1
    Location:
    Indiana
    have a message box with the strhtml
     
  6. ricky92

    ricky92 Administrator
    Staff Member

    Joined:
    Nov 10, 2006
    Messages:
    1,866
    Likes Received:
    67
    I think it's the refer. The login would probably need a correct refer...
     
  7. Pankirk

    Pankirk Level III

    Joined:
    Nov 12, 2006
    Messages:
    652
    Likes Received:
    28
    Location:
    America
    Yeah I guess it would need a refer link. The one I already have is wrong I guess. What do you suggest as the refer link?
     
  8. ricky92

    ricky92 Administrator
    Staff Member

    Joined:
    Nov 10, 2006
    Messages:
    1,866
    Likes Received:
    67
  9. Pankirk

    Pankirk Level III

    Joined:
    Nov 12, 2006
    Messages:
    652
    Likes Received:
    28
    Location:
    America
    Why would the refer link be the same as the login one?
     
  10. ricky92

    ricky92 Administrator
    Staff Member

    Joined:
    Nov 10, 2006
    Messages:
    1,866
    Likes Received:
    67
  11. the_skip

    the_skip Level IV

    Joined:
    Dec 25, 2006
    Messages:
    2,354
    Likes Received:
    1
    Location:
    Indiana
    bad session id if it has one or maybe theher are some stuff missing at the end of the post string
     
  12. Pankirk

    Pankirk Level III

    Joined:
    Nov 12, 2006
    Messages:
    652
    Likes Received:
    28
    Location:
    America
    Alright. I guess that sounds more reasonable then what I had. So now my code is

    Code (Text):
    1. HTML = wrapper.PostWrapper("http://asdfasdf.com/account/login.php", "username=" & txtuser.Text & "&password=" & txtpass.Text, "http://asdfasdf.com/account/login.php")
    is that correct?
     
  13. ricky92

    ricky92 Administrator
    Staff Member

    Joined:
    Nov 10, 2006
    Messages:
    1,866
    Likes Received:
    67
    Yes, that should be correct. Did you try it yet?
     
  14. Pankirk

    Pankirk Level III

    Joined:
    Nov 12, 2006
    Messages:
    652
    Likes Received:
    28
    Location:
    America
    I would try it. But my schools website is down =/. It always goes down when I try to make this stupid program 0_x.

    Yeah. It doesnt work. :p. I have tried EVERYTHING. I guess im going to resotr to... web browser control 0_x. unless someone else can help me?

    Edit: AHH i double posted 0_x sorry
     
  15. tac123

    tac123 Level I

    Joined:
    Apr 29, 2007
    Messages:
    124
    Likes Received:
    0
    Just a random guess, perhaps it is through HTTPS instead of HTTP and your wrapper doesn't support that? I suppose it is necessary to look at the website's source code.
     
  16. Pankirk

    Pankirk Level III

    Joined:
    Nov 12, 2006
    Messages:
    652
    Likes Received:
    28
    Location:
    America
    Im pretty sure its HTTP. Because on the website its HTTP. Im not putting you down or anything. But im just saying that its most likley not https. THanks for your help anyway ;)
     
  17. tac123

    tac123 Level I

    Joined:
    Apr 29, 2007
    Messages:
    124
    Likes Received:
    0
    No offense taken. Like i said, it is pretty hard to know exactly what the problem is without seeing the source code, of both the website and your program.
     
  18. Pankirk

    Pankirk Level III

    Joined:
    Nov 12, 2006
    Messages:
    652
    Likes Received:
    28
    Location:
    America
    Yeah I guess it would have helped if i posted the source of the page too :p
     
  19. kane

    kane Newbie

    Joined:
    Jan 14, 2007
    Messages:
    6
    Likes Received:
    0
    pm me your schools website. Ill make you a login.
     
  20. Pankirk

    Pankirk Level III

    Joined:
    Nov 12, 2006
    Messages:
    652
    Likes Received:
    28
    Location:
    America
    Ok, I appreciate all the help you can give me :)