I know I'm missing something easy here, but this has been racking my brain. I have a python script I've been trying to use to post to a form. I see the post goes through as I get data back from the page after the post. Only problem is I receive an error the data is not being passed:
Here is the code I have so far with some failed tries in the comments. I have replaced a blacklisted ip with x.x.x.x in this code. You should be able to use any ip to test this with though:
Here is what appears to be the relavant code from the page I'm submitting to:
The link to the page is also in the python code if I missed anything. I know a control isn't getting set correctly, but I've tried lots of stuff with no luck. This made me lose a lot of sleep over the weekend. Any help greatly appreciated.
---------- Post updated 07-29-15 at 01:00 AM ---------- Previous update was 07-28-15 at 11:50 AM ----------
Well, I ended up finally figuring this out myself. When I had viewed the site in my browser I did not see the submit button on the next page had a drop down menu that needed to be set. All I needed to change was the following:
Hi all...
As you know I like making code backwards compatible for as many platforms as possible.
This Python script was in fact dedicated for the AMIGA A1200 using Pythons 1.4.0, 1.5.2, 1.6.0, 2.0.1, and 2.4.6 as that is all we have for varying levels of upgrades from a HDD and 4MB FastRam... (1 Reply)
Hi all,
I am trying to run below python code for connecting remote windows machine from unix to run an python file exist on that remote windows machine..
Below is the code I am trying:
#!/usr/bin/env python
import wmi
c = wmi.WMI("xxxxx", user="xxxx", password="xxxxxxx")... (1 Reply)
I am working on requirement on spreadsheet in python scripting.
I have a spreadsheet containing cell values and with background color.
I am able to read the value value but unable to get the background color of that particular cell.
Actually my requirement is to read the cell value along... (1 Reply)
How to remove x lines form top and y lines form bottom.
This works, but like awk only cat file | head -n-y | awk 'NR>(x-1)'
so remove last 3 lines and 5 firstcat file | head -n-3 | awk 'NR>4' (5 Replies)
Hi,
I'm learning libcurl so that I can use it in my GTK+/C program and went through the tutorial and code samples but it has only mentioned about POST form as the site I'm using has the GET form and only thing I found googling was using the command in xterm which I don't want. I would be very... (1 Reply)
Hello all.
I have an incredible number of servers that I need to change a parameter on using a web interface. I'd like to be able to do this via curl, but I'm having some trouble. I filled out the form and hit update while snooping (tcpdump) my interface. That gave the the following as what is... (0 Replies)
Please someone I need information on how to change a Unix form/document into a microsoft word document in order to be emailed to another company. Please help ASAP. Thankyou :confused: (8 Replies)