How to set the Content-Type header in Postman

In order to add content in the Body tab, you have to first select a content type option (none, form-data, etc…). When you select the type and add content, Postman automatically generates the Content-Type header. You can see the auto-generated Content-Type header in the Headers tab. The following table shows what Content-Type header value is … Read more

How to send a request with Postman

Postman is a great tool for web development. You can send a request to any web API, look at the response details, and reuse the the request later (which saves lots of effort!). This is useful for testing your own web API, or for when you’re integrating with a third-party API and want to try … Read more

How to add .gitignore in Visual Studio

It’s important to add .gitignore to your git repository. This tells git which files in your source directory to not track. Without this, you end up pushing lots of unnecessary files to your repository – such as build output files. The simplest way to add .gitignore is by using Visual Studio. This initializes it with … Read more

How to upload a file with Postman

When you’re developing a web API with file uploading, you can use Postman to send files in test requests. This simplifies development because you don’t have to write your own client-side code for sending the test requests. In this article, I’ll show how to upload a file with Postman by posting a file in a … Read more

Search files for a pattern using Notepad++

Notepad++ is a very useful development tool. I always have it open when I’m coding and use it as an auxiliary tool. One thing you can use it for is searching files in a directory for a regex pattern. For example, let’s say you want to find all classes declared in a C# project directory. … Read more

Postman – Save a response value into a variable

This article explains how to parse a value from an API response in Postman and save it into a global variable or environment variable. This is useful when we need to use a value obtained from one request in other requests; for example, when we obtain an access token that needs to be included as … Read more