NF authorization for VB.net

Discussion in 'Code Snippets and Tutorials' started by tharoux, Oct 11, 2008.

  1. tharoux

    tharoux Level IV

    Joined:
    Dec 30, 2006
    Messages:
    2,733
    Likes Received:
    126
    Location:
    In front of my PC, Montreal
    My program is done, I'm fiddling with the auth system and I'm ANGRY right now :back:
    I can't get it working. I'm using mystical wrapper and all my neo stuff is working right but with NF, after the request for auth, there's a problem with the GZIP conversion function. I told myself, fine, I'll skip the gzip conversion but now, the information returned by the request is incomplete (or at least, totally messed up).

    WTF !!! :p
    If someone can post the wrapper class with his auth login or just tell me what's wrong, I'll +rep and love you for life ;)
    Thinking of it, if my program is not uploaded yet, will I get a "no such program" in the return or simply nothing ???
    That may be the problem here

    anyway, zer0, where are you ? :D
     
  2. Zer0

    Zer0 Level IV

    Joined:
    Mar 2, 2008
    Messages:
    3,037
    Likes Received:
    180
    Location:
    Home sweet home
    lol, VB isn't exactly my specialty, but I know a trick or two. One of which is to simply look around to see if there are any existing examples of working code ;)
    Hey, and what'dya know: viewtopic.php?f=15&t=14437#p185659

    expon to the rescue :D
     
  3. tharoux

    tharoux Level IV

    Joined:
    Dec 30, 2006
    Messages:
    2,733
    Likes Received:
    126
    Location:
    In front of my PC, Montreal
    that's the one I'm using ;)
    I'm not the kind of people who ask for help first... I'm just out of idea right now :D
     
  4. expon

    expon Administrator
    Staff Member

    Joined:
    Oct 30, 2006
    Messages:
    1,393
    Likes Received:
    56
    Location:
    UK
    hmm so you are using the exact same code that I posted with the same wrapper?

    since your program isn't uploaded yet, you could test by putting the program id as 56 so that it checks for AU auth.. then it should authorize you, or tell you that a new version is available (since your program name won't be the same as AUs)

    what happens when you try that?
     
  5. tharoux

    tharoux Level IV

    Joined:
    Dec 30, 2006
    Messages:
    2,733
    Likes Received:
    126
    Location:
    In front of my PC, Montreal
    Thanks expon. After reading your post, I found that I wasn't using an exact copy of the wrapper available here. I modified it some times ago for a verpets trainer (before they put in the damn captcha thing). I changed everything back to normal and now it works !!!!
    Only thing, the auth takes SO MUCH time, how did you managed to make the one in AU fast like this ???

    Anyway, I should add the download today if I have some free time and can provide the code if someone want proofs that I made this.
     
  6. expon

    expon Administrator
    Staff Member

    Joined:
    Oct 30, 2006
    Messages:
    1,393
    Likes Received:
    56
    Location:
    UK
    Oh well that's good.
    I don't know why the auth takes so much time - AU uses the same code that was posted in code snippets so it should be the same speed.
    So how much time is it taking you to auth at the moment?
     
  7. tharoux

    tharoux Level IV

    Joined:
    Dec 30, 2006
    Messages:
    2,733
    Likes Received:
    126
    Location:
    In front of my PC, Montreal
    ~4 seconds...
    maybe part of the reason is that I'm not using threading for the login script (cause in fact, I don't know how)
    Anyway, it doesn't matter THAT much since everything work fine.

    Thanks again !
     
  8. Zer0

    Zer0 Level IV

    Joined:
    Mar 2, 2008
    Messages:
    3,037
    Likes Received:
    180
    Location:
    Home sweet home
    The only way that I could see a benefit in using threads is to concurrently authorize and login into Neopets. Other than that, you shouldn't be using threads.