CTA-K12 / JasperClient

Jasper Reports Server REST API Client for php
Other
1 stars 0 forks source link

Sending credentials as part of URL? #2

Open databoy opened 9 years ago

databoy commented 9 years ago

I changed the Client to connect using the following:

$resp = $this->rest->post("/jasperserver/rest/login", "j_username={$this->user}&j_password={$this->pass}", "application/x-www-form-urlencoded");

Where line 98 of the login method has:

$resp = $this->rest->post("/jasperserver/rest/login?j_username={$this->user}&j_password={$this->pass}");