Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8323705
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T23:48:14+00:00 2026-06-08T23:48:14+00:00

This isn’t really related to programming, but I’m using this in a program, so

  • 0

This isn’t really related to programming, but I’m using this in a program, so I thought it would be best to ask here. Essentially this is a question about handling anomalies in HTTP requests.

A standard request might look like:

GET / HTTP/1.1
Host: example.com
User-Agent: Firefox

My question is, how should HTTP handle “special characters” in parts of the HTTP request that aren’t usually tampered with. For instance, what if the method was “POST ME” instead of “GET” (i.e. inclusion of a space); would this be encoded to %20?

Another example, suppose I want one of my headers to be “Class:Test: example”, with the extra “:” in the header name (the header value being “example”). Would this be encoded to %3A?

Note: this isn’t about whether any web servers out there would accept such encoding; this is about how it should be done. My program is a fuzz tester, so it is supposed to be testing this sort of thing!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T23:48:16+00:00Added an answer on June 8, 2026 at 11:48 pm

    The two question must be answered as “no” and “yes, BUT…”

    The “percent encoding” you suggest is defined for content, values, not for the http language syntax. You mix protocol and payload.

    You may want to take a look at the RFC that defines HTTP. It clearly defines a syntax. If you stick to that syntax you can create valid extensions (which is what you are trying to do). If you break that syntax you create invalid http requests. That would be a thing you can do inhouse, but most likely such requests won’t work in the open internet, where for example proxies come into play. These have to understand your requests on y syntactical level.

    For question 2 the answer is “yes, BUT”, I wrote. So a few words to the BUT:

    You can specify such headers and they are valid, if you encode the second ‘:’ as you suggested. However you should understand what you are doing there: you are NOT introducing a hierarchy into header names. Instead you specify a headers content to contain a ‘:’. That is perfectly fine. It is up to your server component to understand, interpret and react as intended to that content.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This isn't strictly a programming question, but I'm asking it here because it's certainly
This isn't the best programming question but lets face it, the server fault guys
this isn't really an issue, but more of a concern that I would appreciate
This isn't strictly a programming question, but hopefully someone here has the knowledge to
This isn't the best question ever, but since search engines feel the need to
This isn't a problem as such, but it's bugging me and I would appreciate
This isn't really clearly documented, but a shallow search reveals that RIM's RAPC compiler
While this isn't strictly programming related, it's something I've run into as a web
This isn't a classic programming language question, but it's keeping me busy so I
This isn't really related to a specific error; my code is not doing what

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.