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

  • Home
  • SEARCH
  • 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 7865415
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T00:04:50+00:00 2026-06-03T00:04:50+00:00

The HTTPRequest class in the tornado* web framework helpfully maps GET and POST arguments

  • 0

The HTTPRequest class in the tornado* web framework helpfully maps GET and POST arguments to lists. I understand why — in case a given argument name is used multiple times. But for some RequestHandlers, this is a pain. For instance, if I want to pass a json object and parse it as-is on the server.

What’s the most straightforward way to disable the map-to-list behavior so that I can send unaltered json to a tornado/cyclone server?

*Cyclone, actually, in case there’s an implementation difference here.

  • 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-03T00:04:51+00:00Added an answer on June 3, 2026 at 12:04 am

    Instead of accessing self.request.arguments directly you should use the accessor functions:

    self.get_argument("ID", default=None, strip=False)
    

    This returns a single item.

    If you want to turn the arguments into a JSON object you can quite easily do so:

    json.dumps({ k: self.get_argument(k) for k in self.request.arguments })
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In ASP.NET there is a System.Web.HttpRequest class, which contains ServerVariables property which can provide
I have a REST web service class which i call HttpRequest using curl.I wrote
how to modify HttpRequest QueryString value in class library,i current can get QueryString value
In ASP.NET, does every HttpRequest get its own thread? Update - To clarify, I'm
As I understand it, in ASP.NET MVC a httprequest is mapped to a controller/action.
I'm stuck on a really, really basic problem: Using HttpRequest to POST a wee
I have a web-application which uses hibernate and for some reason every thread (httprequest
So I adapted urllib2 as suggested by answers to another question : class HttpRequest(urllib2.Request):
I'm coding a web application in GWT. I have a class that handles all
The HttpRequest class defines two properties: HttpMethod : Gets the HTTP data transfer method

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.