Create a URL with credentials

2019-08-26 08:25发布

I would like to provide links to a website with the credentials already within the link. The link is:

https://mychart.covh.org/MyChart/

The credentials are:

Username = AllStarUser
Password = FiveStarPassword

I have tried

https://mychart.covh.org/MyChart/?Username=AllstarUser,Password=FiveStarPassword

and

http://mychart.covh.org/Mychart/logincheck.asp?login=AllStarUser&password=FiveStarPassword

but these don’t work. Any suggestions?

2条回答
Ridiculous、
2楼-- · 2019-08-26 09:09

This is a POST form (method="post"). The form data has to be enclosed in the body of the HTTP request.

If it were a GET form (method="get"), you could enclose the form data in the URL, which is specified in the header of the HTTP request.

See also:

查看更多
对你真心纯属浪费
3楼-- · 2019-08-26 09:11

If this was a "get" -

https://mychart.covh.org/MyChart/logincheck.asp?Login=AllStarUser&Password=FiveStarPassword  

would be correct.

查看更多
登录 后发表回答