When using "fsockopen" and accessing a http-authentication protected site I use the following code (of course using the correct code -username/password- for "Authorization: Basic" :
GET /members/memvision.html HTTP/1.1
Authorization: Basic Y2x1YnNpZGU=Og==Y29vbGhvdXNl
Host: www.host.com
Connection: close
The servers always return 401, even if I specify a correct username/password in base64 format.
any advice?