Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Python 

Python &[b]#34[/b]; input type &[b]#34[/b]; data input

Okay for example, I know that sending php post data is done through urllib2,

resp = urllib2.urlopen('example.com/contactform.php', "message="whatever"&submit=send)

but if a website didn't use post data, then how would I select, for example: " input type=textbox id=message " and input the given data..
If a website doesn't use POST data then I would assume they are using get data. So in the event of that:

resp = urllib2.urlopen('example.com/contactform.php?message=' + var1 + '&subject=' + var2,)
[Image: wOdD4yf.gif]
I don't think that's quite how you send POST data, but the alternative is the GET method. see this
(Jan 29, 2014 02:24 PM)Pillows Wrote:  If a website doesn't use POST data then I would assume they are using get data. So in the event of that:

resp = urllib2.urlopen('example.com/contactform.php?message=' + var1 + '&subject=' + var2,)

It's not using get or post methods, I don't believe so.. it's written in HTML5.. There's no sign of post or get methods, so that's why I need python to pretty much select the textbox through ID given and enter data given.
(Jan 29, 2014 02:27 PM)Un-Identified Wrote:  It's not using get or post methods, I don't believe so.. it's written in HTML5.. There's no sign of post or get methods, so that's why I need python to pretty much select the textbox through ID given and enter data given.
I'm 100% sure it's either POST or GET.

Run it through Live HTTP Headers and post the result.
Just block out the site if it's important.


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Python] by Bass_ReevesAug 20, 2023 01:44 AM 9 630 Aug 20, 2023 01:44 AM
Last Post: Lucky4L
[C] by maryousJul 24, 2022 03:35 PM 0 159 Jul 24, 2022 03:35 PM
Last Post: maryous
[Python] by HeiиekeиMar 17, 2022 06:49 AM 3 140 Mar 17, 2022 06:49 AM
Last Post: Luffy-_-