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 3631942
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T00:27:44+00:00 2026-05-19T00:27:44+00:00

Is a url like http://example.com/foo?bar valid? I’m looking for a link to something official

  • 0

Is a url like http://example.com/foo?bar valid?

I’m looking for a link to something official that says one way or the other. A simple yes/no answer or anecdotal evidence won’t cut it.

  • 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-05-19T00:27:45+00:00Added an answer on May 19, 2026 at 12:27 am
    • Valid to the URI RFC
    • Likely acceptable to your server-side framework/code

    The URI RFC doesn’t mandate a format for the query string. Although it is recognized that the query string will often carry name-value pairs, it is not required to (e.g. it will often contain another URI).

    3.4. Query

    The query component contains non-hierarchical data that, along with
    data in the path component (Section 3.3), serves to identify a
    resource within the scope of the URI’s scheme and naming authority
    (if any). …

    … However, as query components
    are often used to carry identifying information in the form of
    "key=value" pairs and one frequently used value is a reference to
    another URI, …

    HTML establishes that a form submitted via HTTP GET should encode the form values as name-value pairs in the form "?key1=value1&key2=value2…" (properly encoded). Parsing of the query string is up to the server-side code (e.g. Java servlet engine).

    You don’t identify what server-side framework you use, if any, but it is possible that your server-side framework may assume the query string will always be in name-value pairs and it may choke on a query string that is not in that format (e.g. ?bar). If its your own custom code parsing the query string, you simply have to ensure you handle that query string format. If its a framework, you’ll need to consult your documentation or simply test it to see how it is handled.

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

Sidebar

Related Questions

For example, I have an URL that looks for an image like this: http://example.com/img/foo.png
I have a page that is accessed via a URL like this: http://power-coder.net/Test/something.php?id=3#Page1 I
For example, with the URL foo.com/bar/99 99 will be available directly to a method
If you use a full, SEO Friendly URL like http://example.com/talks/about/star-wars then you can expect
My current URL look like this. http://example.com/news.php?id=25&cat=news&date=01092010&title=this-is-the-first-title i want to make it cleaner like
I'd like to redirect: http://site.com/FOO/BAR/BAZ to http://site.com/FOO/NEW/BAZ so, subsitute the second segment in my
If I use an URL like http://mysite/myfolder/myfile.dll , I get a dialog Do you
I'd like to specify a Servlet URL pattern to match a URL that ends
Need a function like: function isGoogleURL(url) { ... } that returns true iff URL
I am trying to create a simple search box that results in something like

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.