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

Python 

WebRequests?

Hey,


I'm pretty new to python.

I'd like to know whats the best & easiest way to make a Webrequest? (POST)


Thanks!
PHP Code

<?php 
Google 
: best & easiest way to make a Web Request python
39.400.000 in 0.32 sec 

First link

PHP Code

<?php 
import urllib2
import httplib
import requests 

🤮

ps : try all of them and pick one.
I would use the requests library :) Look at this link to learn how to use it, I can't post links so you will need to replace "DOT" with . :c
python-requests DOT org/en/latest/user/quickstart/#more-complicated-post-requests
It should be quite straightforward, but if there is anything you need help with, just pm me and I'll do the best to help ^w^
Yes, requests is much more advanced. It deals with redirections, cookies, multipart encoding + it's easy.


Possibly Related Threads...
Thread / Author Replies Views Last Post
[C#] by NinjaDec 24, 2017 02:22 PM 15 576 Dec 24, 2017 02:22 PM
Last Post: Ninja
[Python] by XoggJan 11, 2017 12:13 PM 14 320 Jan 11, 2017 12:13 PM
Last Post: xthanos
[.NET] by Cody8295Dec 8, 2016 12:09 PM 17 978 Dec 8, 2016 12:09 PM
Last Post: elmagek