in reply to HTTPS with lwp problem.

If you have a problem building a request the server will accept, perhaps the code you should be posting is the code where you build the request?

By the way, field cgi_method appears to be misnamed. The request method pertains to HTTP and HTTPS, not CGI.

Also aside from the question asked, 'yes' is a poor choice for the value of the redirection flag. It implies 'no' should be used to avoid redirection. (Please tell me it's not!)

Replies are listed 'Best First'.
Re^2: HTTPS with lwp problem.
by RedGrinGo (Novice) on Nov 03, 2009 at 07:02 UTC

    this my first time around here, can you please tell me what to post? the request ??

    my $user_agent = LWP::UserAgent->new; $user_agent->protocols_allowed(['http','https']); push @{$user_agent->requests_redirectable}, 'POST'; $user_agent->cookie_jar(HTTP::Cookies->new()); my $urlObj = URI->new($url); $reqObj = new HTTP::Request($method,$urlObj,$hdrObj,$cgi_param); $resObj = $user_agent->request($reqObj);

    This is the request. Thankyou

      Which of the three problems do you think is caused by that code?

      can you please tell me what to post?

      Ideally, a minimal piece of code that demonstrates each problem (preferably something runnable), accompanied by both the output you get and the output you expect.

      That's not always necessary, but you haven't given us much to go on. So far, you said you've got three errors, and you haven't shown how you've gotten any of them.

      What you need to post is how you got each of those errors so that we can fix that "how".