I am trying to make a GET request for a REST api using PycURL. I can successfully make a request if I do not pass any parameters. I can also make a POST request by doing the following:
curl.setopt (pycurl.POSTFIELDS, post_data)
I want to make a receive request that includes login options. If I try to use the above line to pass parameters, it will try to make POST. I cannot figure out how to set the login parameters and make a GET request.
Any help would be appreciated.
source share