Basically, I'm using PHP to scrape usage stats from the portal, but authentication is proving somewhat problematic. I made a little HTML page just so I could see the bare minimum needed to login, the following successfully logs in:
Two lines of thought. 1) I think a Content-Length header is needed if the request is passed as HTTP/1.0; not sure whether that applies here or not. 2) Just wondering if the problem is that the login page is separate from VMBU (and other Member Centre pages) so a session token has to be passed from page to page to authenticate the user. A normal browser will handle this routinely but this 'pretend' browser would need to emulate the process.