Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

post

How to get POSTed JSON in Flask?

August 22, 2022 by Magenaut

I’m trying to build a simple API using Flask, in which I now want to read some POSTed JSON. I do the POST with the Postman Chrome extension, and the JSON I POST is simply {"text":"lalala"}. I try to read the JSON using the following method:

Categories Python, Q&A Tags flask, json, post, python Leave a comment

How are POST and GET variables handled in Python?

August 20, 2022 by Magenaut

In PHP you can just use $_POST for POST and $_GET for GET (Query string) variables. What’s the equivalent in Python?

Categories Python, Q&A Tags get, post, python Leave a comment

What is the cause of the Bad Request Error when submitting form in Flask application?

August 19, 2022 by Magenaut

After reading many similar sounding problems and the relevant Flask docs, I cannot seem to figure out what is generating the following error upon submitting a form:

Categories Python, Q&A Tags bad-request, flask, forms, post, python Leave a comment

Python URLLib / URLLib2 POST

August 17, 2022 by Magenaut

I’m trying to create a super-simplistic Virtual In / Out Board using wx/Python. I’ve got the following code in place for one of my requests to the server where I’ll be storing the data:

Categories Python, Q&A Tags post, python, urllib, urllib2 Leave a comment

How do I POST with jQuery/Ajax in Django?

August 16, 2022 by Magenaut

I am trying to POST data using jQuery/AJAX in Django and am having trouble. When I run the code below and click on the ‘test’ button, the entire page re-loads again, which isn’t what I want to happen (that’s why I’m using AJAX).

Categories Python, Q&A Tags ajax, django, jquery, post, python Leave a comment

Python send POST with header

August 13, 2022 by Magenaut

I try to build a python script who sends a POST with parameters for extracting the result.
With fiddler, I have extracted the post request who return that I want. The website uses https only.

Categories Python, Q&A Tags http, http-headers, post, python, request Leave a comment

Django – taking values from POST request

August 11, 2022 by Magenaut

I have the following django template (http://IP/admin/start/ is assigned to a hypothetical view called view):

Categories Python, Q&A Tags django, post, python Leave a comment

Python: How do I get key/value pairs from the BaseHTTPRequestHandler HTTP POST handler?

August 11, 2022 by Magenaut

given the simplest HTTP server, how do I get post variables in a BaseHTTPRequestHandler?

Categories Python, Q&A Tags http, post, python Leave a comment
Newer posts
← Previous Page1 Page2 Page3
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress