am trying to login my yahoo id with inet getting error
when i press command1 it gives me unable to complete request whats wrong.
the error line is these 2
Inet1.Execute , strPacket
Text1.Text = Inet1.GetHeader("")
please help boss.
html sniffed data below
can you also help me post this please thank you merry cristmas in advanced
Code:
Private Sub Command1_Click()
Inet1.RemoteHost = "login.yahoo.com"
Dim strPacket As String, strPostString As String
strPostString = strPostValue
strPacket = "POST /config/login HTTP/1.1 HTTP/1.1" & vbCrLf
strPacket = strPacket & "Host: login.yahoo.com" & vbCrLf
strPacket = strPacket & "User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.13) Gecko/20080311 Firefox/2.0.0.13" & vbCrLf
strPacket = strPacket & "Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5" & vbCrLf
strPacket = strPacket & "Accept-Language: en-us,en;q=0.5" & vbCrLf
strPacket = strPacket & "Accept -Encoding: gzip , deflate" & vbCrLf
strPacket = strPacket & "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7" & vbCrLf
strPacket = strPacket & "Keep-Alive: 300" & vbCrLf
strPacket = strPacket & "Connection: keep -alive" & vbCrLf
strPacket = strPacket & "Referer: https://login.yahoo.com/" & vbCrLf
strPacket = strPacket & "Content-Type: application/x-www-form-urlencoded" & vbCrLf
strPacket = strPacket & "Content-Length: " & Len(strPostString) & vbCrLf & vbCrLf
strPacket = strPacket & strPostString & vbCrLf
Inet1.Execute , strPacket
Text1.Text = Inet1.GetHeader("")
End Sub
when i press command1 it gives me unable to complete request whats wrong.
the error line is these 2
Inet1.Execute , strPacket
Text1.Text = Inet1.GetHeader("")
please help boss.
html sniffed data below
Code:
POST /config/login HTTP/1.1
Host: login.yahoo.com
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:16.0) Gecko/20100101 Firefox/16.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Connection: keep-alive
X-Requested-With: XMLHttpRequest
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Referer: https://login.yahoo.com/
Content-Length: 379
Cookie: ucs=bnas=0; B=1etur2t8ad8fq&b=4&d=p8wHr8JpYEIcKd5mh0ySAhnabwfEthcp.2RxHw--&s=5q&i=LQA07IM9IkCJ6DChXJz7; AO="o=0"; F=a=TveF354MvSjZnk2IQeA2GG8evMlcMNPSPskrWigY8fSjf9VPzkHyEEseHGST1jpQkHZmEnnNSNgY8iWgiIy0bLXkrUIj0TmrXPQscdxOn4tp8G4jxrT5331GI6vhHVHpVF8xy23FxkOG9IyLvwLMilUw9VllPfBFcylL&b=6tWj; CP=v=20501&br=f&pc=msgr&tguid=&optclk=0; YLS=v=1&p=1&n=0; BA=ba=3065&ip=79.70.65.2&t=1353894056; MSC=t=1354417073X; CH=AgBQrtgQADZjEAAJrxAACQYQAAt2EAAyexAAJVcQAAkUEAApSBAADW4QABZf; HP=0; YM=v=2&u=3fB9st_QrFqDxb2w8PqVhNuGtzao9ygujTEhJw--&d=&f=AAA&t=t3gtQB&s=ptTr; DK=v=2&p=NnwyMzMwfFZpcnR1YWx8RGVza3RvcCBCcm93c2VyfHw-; Y=v=1&n=c3k6nsd6765nn&p=; yvap=198@cc=3
Pragma: no-cache
Cache-Control: no-cache
.tries=1&.src=&.md5=&.hash=&.js=&.last=&promo=&.intl=us&.lang=en-US&.bypass=&.partner=&.u=5gs12p98blsgt&.v=0&.challenge=.cDAV8O4bjlExy5.vWH9EgTutWak&.yplus=&.emailCode=&pkg=&stepid=&.ev=&hasMsgr=0&.chkP=Y&.done=http%3A%2F%2Fmy.yahoo.com&.pd=_ver%3D0%26c%3D%26ivt%3D%26sg%3D&.ws=1&.cp=0&nr=0&pad=1&aad=6&login=xlx_N1GHT_R1DER_xlx20&passwd=test1&.persistent=y&.save=&passwd_raw=
can you also help me post this please thank you merry cristmas in advanced