     [Answers](https://scrapfly.io/blog)   /  [http](https://scrapfly.io/blog/tag/http)   /  [What case should HTTP headers be in? Lowercase or Pascal-Case?](https://scrapfly.io/blog/answers/what-case-should-http-headers-be)   # What case should HTTP headers be in? Lowercase or Pascal-Case?

 by [Bernardas Alisauskas](https://scrapfly.io/blog/author/bernardas) Aug 03, 2023 1 min read [\#http](https://scrapfly.io/blog/tag/http) 

 [  ](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fscrapfly.io%2Fblog%2Fanswers%2Fwhat-case-should-http-headers-be "Share on LinkedIn")    

 

 

HTTP headers are often presented in varying case though usually in Pacal-Case like `Content-Type`. According to HTTP specification **header names are case-insensitive**, so `content-type` is the same as `Content-Type`.

However, various browsers treat this issue differently. For example, for **HTTP1.1** protocol, Chrome and Firefox will show the header name in the same case as it was sent by the server or **Pascal-Case**. This means when web scraping using HTTP1.1 it's important to replicate the exact case of expected headers to prevent the scraper from being blocked.

For **HTTP2**+ all headers are **required to be lowercase** so the scraper should always send headers in lowercase when scraping through HTTP2-capable clients.



 

    



Scale Your Web Scraping

Anti-bot bypass, browser rendering, and rotating proxies, all in one API. Start with 1,000 free credits.

  No credit card required  1,000 free API credits  Anti-bot bypass included 

 [Start Free](https://scrapfly.io/register) [View Docs](https://scrapfly.io/docs/onboarding) 

 Not ready? Get our newsletter instead. 

 

## Explore this Article with AI

 [ ChatGPT ](https://chat.openai.com/?q=Summarize%20this%20page%3A%20https%3A%2F%2Fscrapfly.io%2Fblog%2Fanswers%2Fwhat-case-should-http-headers-be) [ Gemini ](https://www.google.com/search?udm=50&aep=11&q=Summarize%20this%20page%3A%20https%3A%2F%2Fscrapfly.io%2Fblog%2Fanswers%2Fwhat-case-should-http-headers-be) [ Grok ](https://x.com/i/grok?text=Summarize%20this%20page%3A%20https%3A%2F%2Fscrapfly.io%2Fblog%2Fanswers%2Fwhat-case-should-http-headers-be) [ Perplexity ](https://www.perplexity.ai/search/new?q=Summarize%20this%20page%3A%20https%3A%2F%2Fscrapfly.io%2Fblog%2Fanswers%2Fwhat-case-should-http-headers-be) [ Claude ](https://claude.ai/new?q=Summarize%20this%20page%3A%20https%3A%2F%2Fscrapfly.io%2Fblog%2Fanswers%2Fwhat-case-should-http-headers-be) 



 ## Related Articles

 [  

 http nodejs 

### How to Set Axios Headers: Complete Guide with Examples (2026)

Learn how to set, manage, and troubleshoot Axios headers: per-request config, global defaults, instances, interceptors, ...

 

 ](https://scrapfly.io/blog/posts/guide-to-javascript-axios-headers) [  

 http blocking 

### How Headers Are Used to Block Web Scrapers and How to Fix It

Introduction to web scraping headers - what do they mean, how to configure them in web scrapers and how to avoid being b...

 

 ](https://scrapfly.io/blog/posts/how-to-avoid-web-scraping-blocking-headers) [  

 curl 

### How to Use cURL GET Requests

Here's everything you need to know about cURL GET requests and some common pitfalls you should avoid.

 

 ](https://scrapfly.io/blog/posts/how-to-use-curl-get-requests) 

  ## Related Questions

- [ Q How to select element with one of many names in XPath? ](https://scrapfly.io/blog/answers/how-to-select-elements-by-attribute-value-in-xpath)
- [ Q What is HTTP cookies role in web scraping? ](https://scrapfly.io/blog/answers/http-cookies-in-web-scraping)
- [ Q Python httpx vs requests vs aiohttp - key differences ](https://scrapfly.io/blog/answers/httpx-vs-requests-vs-aiohttp)
- [ Q How to add headers to every or some scrapy requests? ](https://scrapfly.io/blog/answers/how-to-add-headers-to-every-or-some-scrapy-requests)
 
  



   



 Scale your web scraping effortlessly, **1,000 free credits** [Start Free](https://scrapfly.io/register)