Opening and Saving Visual Studio Http Files

Visual Studio 2022 has introduced .http file support for running simple REST requests. This new feature provides a small subset of WebSurge does, and if you decide you want to use WebSurge for richer request functionality and a quicker more visual interface for request management plus load handling you can easily import - and export WebSurge content from and to .http files.

There are two ways you can do this:

  • Open and Save Operations on the Menu - use the .http Extension
  • Use the Import Menu

Opening and Saving Http Files

The easiest way to open a single .http file containing 1 or more requests is to simply open it with the File | Open Menu option or the Open Session button:

To Open:

To Save:

In both cases make sure you select the .http file extension and ensure the file is named with an .http extension which determines whether the request list is saved in the Http file format or the native WebSurge format.

Opening from the Import Menu

The import menu provides the same Open behavior but you can also import multiple .http files from a folder in one go. If you have multiple files you can choose this option to combine multiple request files into a single WebSurge session.

Use Http Format For Import and Export

Although WebSurge makes it fairly transparent to import and export .http files, the .http format doesn't support all the features that WebSurge stores as part of its session configuration. Things like user configuration, multiple base Urls, Token Capture, and header transformations aren't supported by .http files.

For this reason we don't recommend you use .http as your primary storage format, but rather use these features to import and export from and to .http while using .websurge files while working with WebSurge to take advantage of all of WebSurge's additional features for REST requests.


© West Wind Technologies, 2014-2023 • Updated: 09/05/23
Comment or report problem with topic