in reply to Seeking help with HTTPS form upload.

All my reading into examples has led me to the following code.
my $ua=LWP::UserAgent->new(ssl_opts => { SSL_verify_mode => IO::Socket::SSL::SSL_VERIFY_NONE, verify_hostname => 0, });

No doubt there is a lot of publicly-visible code which encourages the disablement of such verification but that does not mean it is not really bad practice. Far better to pass no args to new at all or else explicitly switch on all the verification instead.


🦛

Replies are listed 'Best First'.
Re^2: Seeking help with HTTPS form upload.
by FeistyLemur (Acolyte) on Oct 13, 2021 at 16:05 UTC

    The ssl is broken on the device. It's out of necessity. When using a browser you have to use the this website is not safe advanced box to gain access.

      9 times out of 10 all that is required to fix this is to use the right CA in the client. Disabling all verification should be the last resort, not the first. YMMV, of course.


      🦛

        It's not and will never be web facing so it isn't really a priority for me to mess with in this case, this is a physical device.