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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T06:49:19+00:00 2026-06-03T06:49:19+00:00

In my post handler, the body of the message is a json. In self.request.body,

  • 0

In my post handler, the body of the message is a json.
In self.request.body, I’m getting a HTML encoded message:

%7B+%22name%22%3A+%22John+Dao%22%2C+%22Age%22%3A+42+%7D=

Taking a look at the network traffic, the payload is actually:

{ "name": "John Dao", "Age": 42 }

So, I’m pretty sure the encoding happens on the server. How do I decode this string, or somehow tell json.loads to accept encoded message, or better yet – tell WSGI (It is Google App Engine) not encoding the body to beging with?

  • 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-03T06:49:20+00:00Added an answer on June 3, 2026 at 6:49 am
    >>> import urllib
    >>> urllib.unquote_plus("%7B+%22name%22%3A+%22John+Dao%22%2C+%22Age%22%3A+42+%7D=")
    '{ "name": "John Dao", "Age": 42 }='
    

    It looks as though the GAE implementation of WebOb is trying to parse and rewrite the POST body as though its content type is “application/x-www-urlencoded” – even the url-decoded string has a “=” appended to it.

    If this is the case, and you can change the client behavior, try setting it to something like “application/json” instead.

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

Sidebar

Related Questions

class UploadHandler(blobstore_handlers.BlobstoreUploadHandler): def post(self): reseller_id = self.request.get('reseller_id') upload_files = self.request.get('logo_img') if upload_files: blob_info =
In my controller/request-handler, I have the following code: def monkey(self, **kwargs): cherrypy.response.headers['Content-Type'] = application/json
In a Website environment how do you make an ajax post to Handler.ashx secure
I have a custom Http Handler which manipulates HTTP POST and GET. I got
The following code receives a post request (using the express module), creates a new
In the http request body, the way password string is passed is pass=1111, however
I'm trying to POST some JSON and a binary file from an iPhone to
As per my previous question , I need to redirect an HTTP POST request
I want API support for: GET /api/spam/{id} POST /api/spam body: {'name': 'green spam'} I
I've found this doc on how to post JSON data using HttpBuilder. I'm new

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.