Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
12 views

Why am I getting an error trying to upload a file to a REST endpoint using .http files in Visual Studio 2022

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
  • 123
0 votes
0 answers
84 views

Loading ".http" test file in Visual Studio. This triggers an error in the VS 2022 Output Box

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
1 vote
0 answers
91 views

How to include authentication headers in visual studio .http file?

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
71 views

Visual Studio 2022 httpfile localDatetime is sending UTC time

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
  • 293
0 votes
0 answers
62 views

Is there a compatible way to create a dynamic date in .http files?

I want to use .http files across our engineering team instead of Postman as it is easier to manage these next to the code rather than in a Postman collection. However, some team members would rather ...
baynezy's user avatar
  • 7,026
4 votes
0 answers
381 views

Update environment variable based on response body in .http file (vscode and rest-client)

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
72 views

How to use websockets in Visual Studio http files

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,524