Join 34,000+ subscribers and receive articles from our blog about software quality, testing, QA and security.

ApiClient for Testrail doesnt work in my network


when i execute the below code it goes well on the internet, but with my office network it fails.
I think i need to use a proxy for this to work.
Could you let me know how to add proxy while creating a request with Testrail APIs?

public class Program {
public static void main(String args) throws Exception
APIClient client = new APIClient(“");

	JSONObject c = (JSONObject) client.sendGet("get_case/*****");
	Map data = new HashMap();
	data.put("status_id", new Integer(1));
	data.put("comment", "This test worked fine!");
	JSONObject r = (JSONObject) client.sendPost("add_result_for_case/***/***", data);