Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
error with requests
#7
(May-11-2019, 08:36 AM)snippsat Wrote: Not sure without looking is all of that is send as form data.
Can try this, if fail try to send all that you posted.
All that the user enters into the form in the browser is the username and password. I also have two screenshots but the image button on here only lets me use a url, I don't see a way to upload the images.

I added this code:
    params = {  txt_txtActiveHelpHtml: '',
                txt_txtPrevFocus:  '',
                txt_txtRecordFlag: '',
                txt_txtMacros: '',
                txt_txtFieldValue: '',
                txt_txtMugShots: '',
                txt_txtSavedHelpValue: '',
                txt_txtFavorites:  '',
                txt_txtTableLinkStyle: -1,
                txt_txtKeyBoardSupport: '',
                txt_inptUserId: {user_name},
                txt_password: {password},
                txt_NewPassword:  '',
and this is what I got:
params = { txt_txtActiveHelpHtml: '',
NameError: name 'txt_txtActiveHelpHtml' is not defined


It actually give this error for all of them. But these are the variable that chrome shows for form data for logging in.
Reply


Messages In This Thread
error with requests - by rudolphyaber - May-07-2019, 03:19 PM
RE: error with requests - by snippsat - May-07-2019, 04:34 PM
RE: error with requests - by rudolphyaber - May-07-2019, 05:21 PM
RE: error with requests - by snippsat - May-08-2019, 08:48 AM
RE: error with requests - by rudolphyaber - May-10-2019, 06:02 PM
RE: error with requests - by snippsat - May-11-2019, 08:36 AM
RE: error with requests - by rudolphyaber - May-14-2019, 07:19 PM
RE: error with requests - by snippsat - May-14-2019, 07:53 PM
RE: error with requests - by rudolphyaber - May-15-2019, 03:34 PM
RE: error with requests - by rudolphyaber - May-20-2019, 06:19 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  POST requests - different requests return the same response Default_001 3 1,957 Mar-10-2022, 11:26 PM
Last Post: Default_001
  Error posting with requests julio2000 6 2,873 Mar-28-2020, 09:43 PM
Last Post: julio2000
  Error in requests.post debanilroy 3 5,440 Sep-18-2018, 06:15 PM
Last Post: snippsat
  An Error in Requests Module pratheep 3 11,935 Feb-06-2018, 05:17 PM
Last Post: pratheep

Forum Jump:

User Panel Messages

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