1

Can someone show me with ncat, how to connect to a https URL where the server requires a username+password?

Without user+password I can connect with just

  ncat --ssl host port

but how do I specify logon-credentials, when required?

Rop
  • 3,359
  • 3
  • 38
  • 59

1 Answers1

1

You pass the header Authorization: Basic BASE64_ENCODED('username:password')

Literally Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQNCg==

synthesizerpatel
  • 27,321
  • 5
  • 74
  • 91