VB.net sending HTTP POST request using SOCKETS
问题 I have here a working HTTP request using SOCKETS but I do not know how to send POST requests. Here is my code: Dim hostName As String Dim hostPort As Integer Dim response As Integer Dim iphe As IPHostEntry = Dns.GetHostEntry("www.yellowpages.com") hostName = iphe.AddressList(0).ToString() hostPort = 80 response = 0 Dim host As IPAddress = IPAddress.Parse(hostName) Dim hostep As New IPEndPoint(host, hostPort) Dim sock As New Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType