# Need a library for HTTPS

**URL:** <https://community.particle.io/t/need-a-library-for-https/64700>\
**Category:** Firmware\
**Tags:** argon\
**Created:** [June 5, 2023, 8:44pm UTC](https://community.particle.io/t/need-a-library-for-https/64700 "2023-06-05T20:44:03Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mm6](https://avatars.discourse-cdn.com/v4/letter/m/8c91f0/32.png) [@mm6](https://community.particle.io/u/mm6)\
**Post date:** [June 5, 2023, 8:44pm UTC](https://community.particle.io/t/need-a-library-for-https/64700/1 "2023-06-05T20:44:03Z")

</div>

Hello. I am working on a book about the Argon (hoping to change to the Photon 2 soon).  
I have working code that made an HTTP request (using TCP sockets) to the API at BART (Bay Area Rapid Transit) system in San Francisco.  
The code no longer runs. I think BART may have changed from HTTP to HTTPS.  
Question: Is there anyway to make HTTPS calls from the Argon (or Photon 2) ?  
I am familiar with the HttpClient library. I am hoping for something like that to handle HTTPS.  
Any advise would be appreciated.  
Thanks,  
Mike

---

<div class="post-metadata">

**Author:** ![armor](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/armor/32/18398_2.png) [@armor](https://community.particle.io/u/armor)\
**Post date:** [June 6, 2023, 12:30pm UTC](https://community.particle.io/t/need-a-library-for-https/64700/2 "2023-06-06T12:30:24Z")

</div>

@mm6

Not that I am aware of. I developed a http download library for Photon and to manage security have adopted other techniques that reduce risk of using an insecure connection. This is OK to manage download of resource files. It also requires a dedicated http server (AWS EC2). It is possible that with the greater program space of the Photon 2 the extra code for https can be supported.

---

<div class="post-metadata">

**Author:** ![rickkas7](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/rickkas7/32/8681_2.png) [@rickkas7](https://community.particle.io/u/rickkas7)\
**Post date:** [June 6, 2023, 12:31pm UTC](https://community.particle.io/t/need-a-library-for-https/64700/3 "2023-06-06T12:31:04Z")

</div>

There is no library for https on the Argon/Photon 2. We recommend using webhook instead of doing it directly from the device.

There is a TLS/SSL library, TlsTcpClient from HiroTakaster that can be found in the community. It's the best library for doing that, but it's not a full HTTP client. It's just a replacement for TcpClient that uses TLS.

---

<div class="post-metadata">

**Author:** ![gusgonnet](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/gusgonnet/32/27491_2.png) [@gusgonnet](https://community.particle.io/u/gusgonnet)\
**Post date:** [June 7, 2023, 1:02pm UTC](https://community.particle.io/t/need-a-library-for-https/64700/4 "2023-06-07T13:02:04Z")

</div>

> [@mm6](#):
>
> I am hoping for something like that to handle HTTPS.

Hi, for completeness only, there are a couple that come up in the libraries:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/particle/original/3X/d/4/d485b42ec4326d08340a10b2d5db3b4d3c410c79.png)

Ultimately, the way to go is webhooks.  
Cheers.

---

<div class="post-metadata">

**Author:** ![mm6](https://avatars.discourse-cdn.com/v4/letter/m/8c91f0/32.png) [@mm6](https://community.particle.io/u/mm6)\
**Post date:** [June 7, 2023, 1:15pm UTC](https://community.particle.io/t/need-a-library-for-https/64700/5 "2023-06-07T13:15:43Z")

</div>

Thanks much. I will switch to web hooks.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/particle/original/3X/3/2/3291e3c9351789fe8620ae5bcec8d3fec67ff221.png) [@system](https://community.particle.io/u/system)\
**Post date:** [December 7, 2023, 1:16am UTC](https://community.particle.io/t/need-a-library-for-https/64700/6 "2023-12-07T01:16:06Z")

</div>

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.
