I decided to tackle this myself and its not receiving any image. I'm getting a bad request response:-
Code:
HTTP/1.1 400 Bad Request
Server: nginx
Date: Tue, 29 Jul 2014 01:40:30 GMT
Content-Type: text/html
Content-Length: 166
Connection: close

<html>
<head><title>400 Bad Request</title></head>
<body bgcolor="white">
<center><h1>400 Bad Request</h1></center>
<hr><center>nginx</center>
</body>
</html>
This is my test code:-
vb Code:
  1. Private strReceivedData As String
  2.  
  3. Private Sub Form_Load()
  4.  
  5.  Winsock1.Connect "www.games5.sepanta.com", 80
  6.  
  7. End Sub
  8.  
  9. Private Sub Winsock1_Close()
  10.     Debug.Print strReceivedData
  11. End Sub
  12.  
  13. Private Sub Winsock1_Connect()
  14.     Dim strHeader As String
  15.    
  16.     strHeader = "GET /forum/uploads/profile/photo-thumb-2.jpg HTTP/1.1" & vbCrLf & vbCrLf
  17.    
  18.     Winsock1.SendData strHeader
  19. End Sub
  20.  
  21. Private Sub Winsock1_DataArrival(ByVal bytesTotal As Long)
  22.     Dim strn As String
  23.    
  24.     Winsock1.GetData strn, vbString, bytesTotal
  25.     strReceivedData = strReceivedData + strn
  26.  
  27. End Sub
  28.  
  29. Private Sub Winsock1_Error(ByVal Number As Integer, Description As String, ByVal Scode As Long, ByVal Source As String, ByVal HelpFile As String, ByVal HelpContext As Long, CancelDisplay As Boolean)
  30.     MsgBox "Winsock error:" + Description
  31. End Sub