Results 1 to 3 of 3

Thread: Trouble using Winsock.SendData

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 1999
    Location
    Brisbane, QLD, AU
    Posts
    2

    Post

    I cannot seem to get the senddata method to work. it doesnt error, it just appears to not send anything. Any ideas?

    ------------------
    Joe1223
    [email protected]
    The BlueAura Project.

  2. #2
    Lively Member
    Join Date
    Oct 1999
    Posts
    66

    Post

    Did you check the port numbers?

  3. #3
    Lively Member
    Join Date
    Nov 1999
    Location
    Melbourne, Victoria, Australia
    Posts
    126

    Post

    Try this..(this comes from my head and might not work, email me if you want a working example)

    Private Sub Command1_Click()
    winsock1.connect "www.vb-world.net", 80
    End Sub

    Private Sub Winsock1_Connect()
    winsock1.senddata "GET /index.htm HTTP/1.0" & chr(13) & chr(13)
    End Sub

    Private Sub Winsock_DataArrival(bytes as long)
    winsock1.getdata TempStr, vbString
    text1.text = text1.text & TempStr & vbcrlf
    End Sub



    ------------------
    Regards,

    Paul Rivoli
    -------------------
    [email protected]
    http://users.bigpond.com/privoli

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