im so new to python im try to pass variables with Wget
code:
USERID = 201
RES = os.system("wget http://localhost/ -O /usr/setting.txt")
if RES == error:
print RES
else
print 'good'
what i need to pass is
http://localhost/?userid=203 or username=james
and then read the received data
how can i achieve this?
trust me i looked at a lot of stuff posted but i'm still lost.
thank you :)
urllib2.urlopen()or therequestsmodule to retrieve the URL? Do you need to store the response in a file?