About 5,900,000 results
Open links in new tab
  1. http - How to add login credentials to URL - Stack Overflow

    May 25, 2018 · The browser handles this response by displaying a prompt requesting username and password, with the value of the realm contained in the prompt to give the user a hint as to what particular username and password is required.

  2. Calling a rest api with username and password - how to

    You can also use the RestSharp library for example. var userName = "myuser"; var password = "mypassword"; var host = "170.170.170.170:333"; var client = new RestClient("https://" + host + "/method1"); client.Authenticator = new HttpBasicAuthenticator(userName, password); var request = new RestRequest(Method.POST); request.AddHeader("Accept ...

  3. Sample Rest Api Url For Testing With Authentication

    To obtain the username and password, you first need to hit the user registration API. This will provide you with the credentials to include in the authentication header of the HTTP client. Api Base Url- http://samplerestapi.com.

  4. Can you pass user/pass for HTTP Basic Authentication in URL

    Mar 21, 2012 · It is indeed not possible to pass the username and password via query parameters in standard HTTP auth. Instead, you use a special URL format, like this: http://username: [email protected] / -- this sends the credentials in the standard HTTP "Authorization" header.

  5. How do i Pass username and password in an api url

    Dec 9, 2015 · For example, for basic authentication you need to add to the request headers a specific header named Authorization with this content. Basic [TOKEN] where [TOKEN] stands for . Base64(username:password) ie, username and password concatenated by a ':' and all encoded in Base64. (https://en.wikipedia.org/wiki/Basic_access_authentication#Client_side)

  6. HTTP Basic Authentication with Password in URL - Online …

    We can do HTTP basic authentication URL with @ in password. We have to pass the credentials appended with the URL. The username and password must be added with the format − https://username:password@URL. Let us make an attempt to handle the …

  7. How to Set Username and Password in an HTTP GET Request

    Use URL parameters to include credentials in the query string for direct API calls, but ensure the URL is accessed over HTTPS to protect sensitive information. Implement HTTP Basic Authentication, which encodes username and password into the request header.

  8. Call api with basic authentication using c# | by Pramod Choudhari

    Dec 9, 2024 · API URL: Replace https://example.com/api/resource with the actual API endpoint. Username & Password: Replace your_username and your_password with the API's Basic Authentication...

  9. API Keys: API Authentication Methods & Examples - Stoplight

    Dec 21, 2022 · There are many methods of API authentication, such as Basic Auth (username and password) and OAuth (a standard for accessing user permissions without a password). In this post, we’ll cover an old favorite, the API key, and discuss how to authenticate APIs.

  10. RESTful API Authentication Basics - REST API and Beyond

    Nov 28, 2016 · The most simple way to deal with authentication is to use HTTP basic authentication. We use a special HTTP header where we add 'username:password' encoded in base64. Note that even though your credentials are encoded, they are not encrypted! It is very easy to retrieve the username and password from a basic authentication.

  11. Some results have been removed
Refresh