Highlighted
Super Contributor.. Super Contributor..
Super Contributor..
916 views

Error -27792: Failed to connect to server "server name": [10061] Connection refused

Hello,

I am using windows server 2012 r2, loadrunner version 12.53 and Web-HTTP/HTML.

I am having a REST API code. When I am trying to replay the “REST API code”, it’s giving error

“Error -27792: Failed to connect to server "server name": [10061] Connection refused”

Can anyone tell me, how to fix this error?

I would also like to know, how to capture the token to be passed into the request?

 

REST API code:

web_set_sockets_option("SSL_VERSION","TLS");                       

web_rest("GET:URL",

"URL=URL?context=TAG&contextValue=1",

"Method=GET",

"Snapshot=t131653.inf",

HEADERS,

"Name=Accept", "Value=application/json", ENDHEADER,

LAST);

Thanks

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.