Active IQ Unified Manager Discussions

perl post request fails on SSL handshake

jivam
1,753 Views
 
4 REPLIES 4

sinhaa
1,663 Views

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.

jivam
1,604 Views

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

sinhaa
1,572 Views

'_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.

jivam
1,556 Views

The credentials are valid

Public