Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Bad HTTP response from Server while connecting to windows host #386

@kenancakir

Description

@kenancakir

Hello,

i try to connect to a windows machine in our environment with the command:
s = winrm.Session('winpc1.xxx.de', auth=('user', 'secret'), proxy='http://DOMAIN%5Cuser:secret@proxyserver:8080')

i get the error message:
File "/home/ansible/.local/lib/python3.8/site-packages/winrm/transport.py", line 352, in _send_message_request raise WinRMTransportError("http", ex.response.status_code, response_text.decode()) winrm.exceptions.WinRMTransportError: Bad HTTP response returned from server. Code 502

We use a proxy server in our environment. Either i want to use a kerberos authentication here how can i realize this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions