Allocate the correct nr of bytes for lpszCookies in HTTP_HttpOpenRequestA.