Its just the one complete code extract with the header data it generates. I don't think I'm closing the connection before I intend to. To reiterate - the asp session cookie gets set correctly in the cURL cookie jar but the aspxauth cookie does not. I don't understand why not and I am failing dismally at following the page headers to execute the redirects manually. I was hoping to read the aspxauth cookie directly from the headers to set it manually. But I can't seem to get to the point where I can retrieve it. Apologies for the brief replies but I'm away from home for a while and trying to reply from a mobile device... I really appreciate the feedback rhough.