# Processing client SSL access

**URL:** https://discourse.processing.org/t/processing-client-ssl-access/11443
**Category:** Libraries
**Created:** [May 20, 2019, 11:31pm UTC](https://discourse.processing.org/t/processing-client-ssl-access/11443 "2019-05-20T23:31:24Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![pacolux](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/pacolux/32/1893_2.png) [@pacolux](https://discourse.processing.org/u/pacolux)
#### Post date: [May 20, 2019, 11:31pm UTC](https://discourse.processing.org/t/processing-client-ssl-access/11443/1 "2019-05-20T23:31:24Z")

</div>

I cannot seem to find any examples of using the processing client to access an SSL protected website. Here is my code. It just returns a 400 error. Is the Processing default client capable of doing SSL or should I look to something else?

TIA

Code Snip:

```
 String data = "";
   c = new Client(this, "api.nasa.gov", 443);  
   c.write("GET /planetary/earth/imagery?lon=-105.3&lat=31.7&api_key=mykey HTTPS/1.0\n");  
         
   delay(1000);
   
   while (c.available() > 0) { // Read data coming from into the client....
       data += c.readString(); // ...and put it in a String
       println(data);
    } 

```

Produces:

HTTP/1.1 400 Bad Request  
Server: openresty  
Date: Mon, 20 May 2019 23:24:15 GMT  
Content-Type: text/html  
Content-Length: 170  
Connection: close

400 Bad Request
# 400 Bad Request

* * *
openresty

---

<div class="post-metadata">

### Author: ![kfrajer](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kfrajer/32/196_2.png) [@kfrajer](https://discourse.processing.org/u/kfrajer)
#### Post date: [May 22, 2019, 8:18am UTC](https://discourse.processing.org/t/processing-client-ssl-access/11443/2 "2019-05-22T08:18:00Z")

</div>

Try this: [https://www.mkyong.com/java/java-https-client-httpsurlconnection-example/](https://www.mkyong.com/java/java-https-client-httpsurlconnection-example/)

Kf
