Data Infrastructure Management Software Discussions

perl post request fails on SSL handshake

 
4 REPLIES 4

Re: perl post request fails on SSL handshake

This is the laziest post I've seen Man Happy 

 

Care to provide some details?

If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.

Re: perl post request fails on SSL handshake

Trying to use a post request against WFA server.

No certificate is being used

GET request agains the same server works fine

below is the output after execution

 

'client-ssl-socket-class' => 'Net::SSL'
'client-ssl-warning' => 'Peer certificate not verified'
'connection' => 'keep-alive'
'content-length' => 71
'content-type' => 'text/html;charset=UTF-8'
'date' => 'Fri, 06 Apr 2018 16:02:19 GMT'
'expires' => 0
'pragma' => 'no-cache'
'server' => 'WildFly/8'
'title' => 'Error'
'www-authenticate' => 'Basic realm="wfa-ws-login"'
'x-powered-by' => 'Undertow/1'
'_msg' => 'Unauthorized'
'_protocol' => 'HTTP/1.1'
'_rc' => 401
'_request' => HTTP::Request=HASH(0x22daaf0)
'_content' => ''
'_headers' => HTTP::Headers=HASH(0x22daad8)
'content-length' => 0
'content-type' => 'application/x-www-form-urlencoded'
'user-agent' => 'libwww-perl/6.15'
'_method' => 'POST'
'_uri' => URI::https=SCALAR(0x18dea68)
-> 'https://30.5.203.157/rest/workflows/8c1a4f35-63b0-46f8-845f-1e81ec199858/preview'
'_uri_canonical' => URI::https=SCALAR(0x18dea68)
-> REUSED_ADDRESS

Re: perl post request fails on SSL handshake

'_msg' => 'Unauthorized'
'_protocol' => 'HTTP/1.1'
'_rc' => 401

 

----

HTTP Error 401 - Unauthorized: Access is denied due to invalid credentials. 

 

sinhaa

If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.

Re: perl post request fails on SSL handshake

The credentials are valid

Cloud Volumes ONTAP
Review Banner
All Community Forums
Public