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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T16:33:00+00:00 2026-05-14T16:33:00+00:00

Imagine we need to pass a a number structured objects to the web application

  • 0

Imagine we need to pass a a number structured objects to the web application – for instance, locale, layout settings and a definition of some query. This can be easily done with JSON or XML similar to the following fragment:

<Locale>en</Locale>  
<Layout>  
  <Block id="header">hide</Block>  
  <Block id="footer">hide</Block>  
  <Block id="navigation">minimize</Block>  
</Layout>  
<Query>  
  <What>water</What>  
  <When>  
    <Start>2010-01-01</Start>  
  </When>  
</Query>

However, passing such structures with HTTP implies (roughly speaking) HTTP POST.

Now assume we’re limited to HTTP GET. Is there some kind of a standard solution for encoding structured data in HTTP GET request parameters?

I can easily imagine something like:

Locale=en&
Layout.Block.header=hide&
Layout.Block.footer=hide&
Layout.Block.navigation=minimize&
Query.What=water&
Query.When.Start=2010-01-01

But what I’m looking for is a “standard” syntax, if there’s any.

ps. I’m surely aware of the problem with URL length. Please assume that it’s not a problem in this case.

pps. I’d be also greatful for links to key-value pair URL APIs (like Paypal NVP) which you think to be worth taking a look at.

ppps. We’re certainly forseeing the callback URLs but we need HTTP GET key-value pairs as well. The question focuses on the latter.

  • 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-14T16:33:00+00:00Added an answer on May 14, 2026 at 4:33 pm

    To my knowledge, there are no standards for passing structured data using GET. There are a handful of conventions (the PHP/RoR example above possibly the most prevalent), but nothing that has reached any level of maturity, documentation, reference implementation etc… to be considered a standard.

    And it’s not too surprising a simple standard hasn’t emerged. There are open questions whose answers depend upon specifics of the situation. Should the URL be transparent (as visible query parameters) or opaque (e.g. base64 encoded). Can compression be used? Can/should/must other representations be used/supported, e.g. JSON, binary XML or even Google’s protocol buffers). How is URL overflow handled? 10 different people might all give different answers about what needed based on their situation. A standard could attempt to address all these concerns, but it would then be far from simple.

    Even if there were a standard, would it make sense to follow it?

    It’s desirable, comforting even, to follow a standard, knowing that your work is building on the road-tested work of respected field-experts and engineers, and knowing that we are invited to the party and play with other systems that follow the same standard. But when the requiremtents are diverse, as they are here, a standard will typically only give you a middle-ground solution, a medium of comprimise. And when you’ve only got 2K to play with, comprimising is probably last on your list!

    Roll your own and you’ll be sure to get exactly what you want. I’d go for representing as binary XML or protocol buffers, gzipped and base64 encoded, but you’re millage may vary.

    Either way, good luck!

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

Sidebar

Ask A Question

Stats

  • Questions 375k
  • Answers 375k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Eclipse will by default try to launch with the default… May 14, 2026 at 8:13 pm
  • Editorial Team
    Editorial Team added an answer This is a feature known as collapsing margins. See: http://www.w3.org/TR/CSS2/box.html#collapsing-margins… May 14, 2026 at 8:13 pm
  • Editorial Team
    Editorial Team added an answer PHPIDS might be what you want. "Currently the PHPIDS detects… May 14, 2026 at 8:13 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.