in reply to Sending Post Forms and Cookies

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).

Hope this makes the question a bit clearer.

// Martin

Replies are listed 'Best First'.
RE: clearifying my post
by Fastolfe (Vicar) on Oct 27, 2000 at 18:16 UTC
    The example given in the node above yours did mostly that. Set $URL to the URL that sets the cookie, and the LWP stuff will request it via a user agent of its own, noting the cookies and saving them for future reference. Follow up that example code with code that actually posts your form.

    See the documentation for the LWP::UserAgent and, say, HTTP::Request stuff.. examples are extensive.