Python Forum
Handle parameters in POST request for python webserver?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Handle parameters in POST request for python webserver?
#2
Since the parameter paramtwo is shown in your url, this is definitely GET-request (or may be you have this parameter is sent as POST too behind the scene). To get get-parameters you need to parse self.path, e.g. something like this (not tested):

import urllib
print(urllib.parse.parse_qs(self.path))
Reply


Messages In This Thread
RE: Handle parameters in POST request for python webserver? - by scidam - Jul-16-2019, 10:59 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Question Python request (post/get) Drunknmonkie 1 4,032 Jan-19-2023, 02:02 PM
Last Post: prvncpa
  Post request not saving in DRF Dexty 0 1,507 Jun-03-2022, 12:35 PM
Last Post: Dexty
Brick how to work with 2 or more related tables in a Post request ikurorox 0 2,096 Dec-05-2021, 01:01 AM
Last Post: ikurorox
  Show HTML in Python application and handle click SamHobbs 2 4,103 Sep-28-2021, 06:27 PM
Last Post: SamHobbs
  POST request with form data issue web scraping hoff1022 1 3,761 Aug-14-2020, 10:25 AM
Last Post: kashcode
  The correct POST request abhie_lp 5 4,202 Jun-05-2020, 07:27 AM
Last Post: buran
  combining flask webserver and another applicaiton maciejMatthias 3 3,287 May-10-2020, 11:19 PM
Last Post: snippsat
  How to apply post request in python for establishment search for EPFO? rajeev1729 0 2,635 May-01-2020, 04:45 PM
Last Post: rajeev1729
  Python Request's Proxies not working. Fudster 1 10,013 May-01-2020, 06:42 AM
Last Post: buran
  Python + request from specific website - please help hoff1022 8 7,080 Feb-14-2019, 06:52 PM
Last Post: buran

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020