Python Forum
post data problemHi guys I have small problem in python.I'm getting this error: "PO
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
post data problemHi guys I have small problem in python.I'm getting this error: "PO
#1
Hi guys

I have small problem in python.I'm getting this error:

Error:
"POST data should be bytes, an iterable of bytes, or a file object. It cannot be of type str."
in this line:

response = self.br.open(loginform_url, data=urllib.parse.urlencode({'login':self.name, 'password':self.password}), timeout=35)
Thanks
Reply


Messages In This Thread
post data problemHi guys I have small problem in python.I'm getting this error: "PO - by jure98 - Apr-20-2018, 05:05 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  What is the error of not being able to pull data in this code? i didn't see an error? TestPerson 2 1,304 Sep-30-2022, 02:36 PM
Last Post: DeaD_EyE
  Post HTML Form Data to API Endpoints Dexty 0 1,465 Nov-11-2021, 10:51 PM
Last Post: Dexty
  POST request with form data issue web scraping hoff1022 1 2,773 Aug-14-2020, 10:25 AM
Last Post: kashcode
  How to POST html data to be handled by a route endpoint nikos 1 2,450 Mar-07-2020, 03:14 PM
Last Post: nikos
  Sending data post to wsgiref JohnnyCoffee 0 1,837 Oct-24-2019, 09:04 PM
Last Post: JohnnyCoffee
  Python/BeautiifulSoup. list of urls ->parse->extract data to csv. getting ERROR IanTheLMT 2 4,050 Jul-04-2019, 02:31 AM
Last Post: IanTheLMT
  Error in requests.post debanilroy 3 5,525 Sep-18-2018, 06:15 PM
Last Post: snippsat
  How do i loop through list of data from CSV file and post requests in aspx dynamics w Prince_Bhatia 1 6,150 Nov-09-2017, 02:53 PM
Last Post: heiner55

Forum Jump:

User Panel Messages

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