Ok, I read the reply i got and my question again and i think the question wasn't really clear. so here comes a try to fix that.
What I want to do is to make the script to act as a client (like Netscape) and request a page (in this case a output from a script) and in that request send som enviroment vars like HTTP_COOKIE and HTTP_REFERER (i think thats what they are called) etc, and form info (method post).