Problem with Credentials directly in the host url

Hi,

Im trying to access the host with credentials with below syntax

'https://user:password@my-site.com:9200'

Here i'm having one problem.

username :- akhilesh
password :- akhil@123

when i'm trying to access with URL like

https://akhilesh:akhil@123@192.168.86.72:9200

Its throwing me an error, as there are two '@' in the host. Its getting confused and taking 123@192.168.86.72:9200 as a host.

How can i solve this problem?

You can escape the @ in the password with %40. So for example:

https://akhilesh:akhil%40123@192.168.86.72:9200

Do be mindful that if you include the password in the URL like this from the command line, another user on the system may be able to view it via a process list.

Hi @joshbressers,

Thank you for the reply,

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.