Results 1 to 7 of 7

Thread: SSL based HTTP Proxy Server in Vb6

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 2012
    Posts
    106

    SSL based HTTP Proxy Server in Vb6

    Hello again,

    I am creating one project in which i need to create a Proxy server. I'v searched and found few working example on Pscode. But there's nothing related to SSL Proxy server. At last I came to know about Chilkat ActiveX Socket which can support SSL. But I am getting difficulty about using it in Vb6.

    Hence here anyone of you how to use Chilkat SSL Socket to create a web Proxy Server OR already have any working example related to the topic, please share...

    I am also trying to get more & more information about it..

    Thanks
    Regards,

  2. #2
    Banned
    Join Date
    Nov 2012
    Posts
    1,171

    Re: SSL based HTTP Proxy Server in Vb6

    Code:
    Private Sub Command1_Click()
    Text3.Text = ""
    Text4.Text = ""
    
    
        SSLSocket1.CloseSSL
        SSLSocket1.RemoteHost = "na.edit.yahoo.com"
      
    SSLSocket1.ConnectSSL
    End Sub



    Code:
    Private Sub SSLSocket1_SSLConnect()
    
        Dim Yahoo As String, login As String
    '
    
    login = "your login packet or any packet am sure you know what to do" & vbCrLf
    'Yahoo = "GET /registration?" & " HTTP/1.1" & vbCrLf
    Yahoo = "POST /registration" & " HTTP/1.1" & vbCrLf
    
    Yahoo = Yahoo & "Accept-Language: en-us" & vbCrLf
    Yahoo = Yahoo & "User-Agent: Mozilla/5.0 (compatible; MSIE 8.0; Windows NT 5.1; aggass)" & vbCrLf
    Yahoo = Yahoo & "Accept: */*" & vbCrLf
    Yahoo = Yahoo & "Host: na.edit.yahoo.com" & vbCrLf
    Yahoo = Yahoo & "Connection: Keep-Alive" & vbCrLf & vbCrLf
    Yahoo = Yahoo & "Content-Length: " & Len(login) & vbCrLf & vbCrLf & login
    
    SSLSocket1.SendSSL Yahoo
    
    End Sub

    Code:
    Private Sub SSLSocket1_SSLData(sData As String)
    
    
    'SSLSocket1.SendSSL sData
     
    
    
    Text4.Text = Text4.Text & sData
    Debug.Print sData
    End Sub
    download firefox live http sniffer grab your packets !!!!!!
    Attached Files Attached Files
    Last edited by ladoo; Dec 25th, 2012 at 01:56 AM.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Feb 2012
    Posts
    106

    Re: SSL based HTTP Proxy Server in Vb6

    Hello ladoo,
    That's gr8 thanks it will surely be helpful to me.. But this socket do not have Listening Property.. So how can I use it to create a HTTP Proxy Server? Do you have any example about it?

    Thanks again
    regards,

  4. #4
    Banned
    Join Date
    Nov 2012
    Posts
    1,171

    Re: SSL based HTTP Proxy Server in Vb6

    i had this socket ssl for some time used it many time , and never used it for server wise , if you look at codebank you will find so many examples , client and server connections , i am not sure if this is gone work but load up a normal socket or ssocket and get the listen code out of that and put it in ssl control , give it a try

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Feb 2012
    Posts
    106

    Re: SSL based HTTP Proxy Server in Vb6

    Haha That's a Cool idea ladoo.. Thanks

  6. #6
    PowerPoster
    Join Date
    Aug 2010
    Location
    Canada
    Posts
    2,892

    Re: SSL based HTTP Proxy Server in Vb6

    Chilkat has a forum here: http://www.chilkatforum.com

    You may be more likely to get answers specific to their products there.

  7. #7
    Banned
    Join Date
    Nov 2012
    Posts
    1,171

    Re: SSL based HTTP Proxy Server in Vb6

    but this is paid,trial useless , but works , rather not use trials att all waste your programming time

Posting Permissions

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



Click Here to Expand Forum to Full Width