I have a weird problem, I'm using HTTP::Request to
POST sone requests. But sometimes I get URI too large...
My $url string can go up to 8000 characters.
How can I fix that?
here is the sub i'm using.
sub PostRequest
{
my $url = @_[0];
use LWP::UserAgent;
use HTTP::Request;
use HTTP::Response;
my $ua = LWP::UserAgent->new;
my $request = HTTP::Request->new(POST => $url);
my $response = $ua->request($request);
return $response->content;
}
</BlakMonk>
well 8000 characters is not the smallest ... It's the nature of the application.
I just realized that even though I go :
my $request = HTTP::Request->new(POST => $url);
if My uri is [domain.com...] is still sent as a GET....
Let me change my question into :
How dow I change my Get request to a True post resquest?
BlakMonk