its definately setting cookies by visiting the first url and when it forwards there may be certain headers required to prevent errors. im guessing you will need to use [man]curl[/man] functions to get the page or write your own custom socket functions with [man]fsockopen[/man].