Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
180 views

I trying to consume a .NET Core Minimal Api endpoint, which is secured with Bearer tokens, via the .http client in Visual Studio. I'm setting a valid Authorization: Bearer <token> in the request ...
Rizan Zaky's user avatar
  • 4,702
0 votes
1 answer
182 views

I need to store a username and password in my .http file in Visual Studio in a secure and easy way so that it is not checked into source control accidentally. @MyAuth.Auth_HostAddress = http://...
Rizan Zaky's user avatar
  • 4,702
1 vote
0 answers
41 views

I have created a my first http file called app.http GET https://localhost/FooBar When I click on the "Send" on the codelens above the "GET" I am thrown The SSL connection could ...
Ashley Kilgour's user avatar
1 vote
1 answer
167 views

I have the following code in a .http file. @fileName = C:/MyFile.txt POST {{baseUrl}}/api/endpoint Authorization: Bearer {{adminToken}} Content-Type: multipart/form-data; boundary=MyFormBoundary --...
Tim's user avatar
  • 151
0 votes
1 answer
357 views

I am trying to run a test file for my Web APIs using .http files. However, whenever I attempt to load the file in Visual Studio 2022 in the output box I get the following: Executing command 'dotnet ...
Aditya Gupta's user avatar
2 votes
0 answers
338 views

I'm trying to connect to MongoDB Ops Manager programmatically, and so I have a public and private key that I generated. When I use the key details and make a request through insomnia using digest ...
Siddharth Mehrotra's user avatar
0 votes
1 answer
173 views

I am building a web API that should be able to receive POST requests containing user messages. I have a .http file that should send a request to test this interface. One of the fields that it should ...
Lex W.'s user avatar
  • 281
5 votes
0 answers
796 views

I want to override the local.token value in settings.json. I can read the body and update a local variable but this means I need to run the token request and manually update the environment variable ...
mahbuburrahman rifat's user avatar
1 vote
1 answer
107 views

I am looking to test websocket connections using Visual Studio 2022 http files. Could not find any documentation on https://learn.microsoft.com/en-us/aspnet/core/test/http-files?view=aspnetcore-8.0.
shmit's user avatar
  • 2,534