تقييم الموضوع :
  • 0 أصوات - بمعدل 0
  • 1
  • 2
  • 3
  • 4
  • 5
ممكن تصحيح
#1
Bug 
السلام عليكم اخوانى الكرام ممكن ليه الكود مش بيعمل لوجين
PHP كود :
Dim postData As String "login_email=" TextBox2.Text "login_password=" TextBox2.Text "submit=Log+In"
        
Dim tempCookies As New CookieContainer
        Dim encoding 
As New UTF8Encoding
        Dim byteData 
As Byte() = encoding.GetBytes(postData)
        
Dim postReq As HttpWebRequest DirectCast(WebRequest.Create("https://www.paypal.com/us/webapps/mpp/home"), HttpWebRequest)
        
postReq.Timeout 10000
        postReq
.Method "POST"
        
postReq.KeepAlive True
        postReq
.CookieContainer tempCookies
        postReq
.ContentType "application/x-www-form-urlencoded"
        
postReq.Referer "https://www.paypal.com/us/webapps/mpp/home"
        
postReq.UserAgent "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:29.0) Gecko/20100101 Firefox/29.0"
        
postReq.ContentLength byteData.Length

        
        Dim postreqstream 
As Stream postReq.GetRequestStream()
        
postreqstream.Write(byteData0byteData.Length)
        
postreqstream.Close()
        
Dim postresponse As HttpWebResponse

        postresponse 
DirectCast(postReq.GetResponse(), HttpWebResponse)
        
tempCookies.Add(postresponse.Cookies)
        
logincookie tempCookies

        Dim postreqreader 
As New StreamReader(postresponse.GetResponseStream())

        
Dim thepage As String postreqreader.ReadToEnd

        RichTextBox1
.Text thepage 
الرد }}}
تم الشكر بواسطة:


الردود في هذا الموضوع
ممكن تصحيح - بواسطة ابراهيم مراد - 11-06-14, 11:39 PM
RE: ممكن تصحيح - بواسطة vbnet - 12-06-14, 12:15 AM
RE: ممكن تصحيح - بواسطة ابراهيم مراد - 12-06-14, 01:23 AM
RE: ممكن تصحيح - بواسطة vbnet - 12-06-14, 06:34 PM
RE: ممكن تصحيح - بواسطة ابراهيم مراد - 12-06-14, 08:14 PM


التنقل السريع :


يقوم بقرائة الموضوع: بالاضافة الى ( 1 ) ضيف كريم