I used the WinInet API in my scripts and as I recall, the token thing never worked as advertised. Like others, I had to make it grab cookies, follow login forms, etc..