Click here to Skip to main content
15,898,941 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using Locust framework for which python file is needed as input. 

I have imported following in my python file code:
1)HttpLocust 2)TaskSet 3)task 4)events 5)web 6)datetime 7)time

In python file, I am writing http request using methods:
1)self.client.get 2) self.client.post

I am observing response of these requests in fiddler.
This is all about sending requests to http sites.

But while sending requests to https sites by using same syntax,response is not observed in fiddler.
Even for get requests also, The "response status code" is 0. Also,response is blank.It's showing nothing in fiddler.  

So is there any other way to send https requests?
I am sending requests mostly for java sites(which starts with https).

Kindly suggest possible solution.


What I have tried:

I have tried for some java sites, but it is giving response status code as 0 and response content as "None".
Posted
Updated 25-Oct-17 1:03am
v2
Comments
Richard MacCutchan 25-Oct-17 7:28am    
You need to check those requests manually to see what response you get. It is quite likely that you need to include authorisation information for the HTTPS requests.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900