# Iframe source from httpPost

**URL:** <https://forum.inductiveautomation.com/t/iframe-source-from-httppost/99243>\
**Category:** Ignition\
**Tags:** webdev, perspective, scripting\
**Created:** [November 28, 2024, 9:41pm UTC](https://forum.inductiveautomation.com/t/iframe-source-from-httppost/99243 "2024-11-28T21:41:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Juan\_Aguilar1](https://avatars.discourse-cdn.com/v4/letter/j/d9b06d/32.png) [@Juan\_Aguilar1](https://forum.inductiveautomation.com/u/Juan_Aguilar1)\
**Post date:** [November 28, 2024, 9:41pm UTC](https://forum.inductiveautomation.com/t/iframe-source-from-httppost/99243/1 "2024-11-28T21:41:24Z")

</div>

Hi community, I'm having problems trying to get an html through scripting using httpPost. The idea is to return this html to an IFrame component through a binding property (using src property of component).

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/9/1/914864fba128d2720d6ebaa2f9684657cc20b04f.png)

The code is this:

```python
url = "https://mydomain.com/system/webdev/myApp/renderSQL"
print system.net.httpPost(url,'application/json',{"content": "ExampleParam"})

```

When I execute the code through script console in the designer it works, but when I execute in a binding property, it throws error

```python
IOError: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

```

Also I tried change domain to localhost and does not works, Any ideas on how I can achieve this?

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [November 28, 2024, 10:00pm UTC](https://forum.inductiveautomation.com/t/iframe-source-from-httppost/99243/2 "2024-11-28T22:00:19Z")

</div>

![src null](https://us1.discourse-cdn.com/inductiveautomation/original/3X/c/3/c301dd67067c4246d0bffaa0309b8da1c4509345.png)

Your binding isn't providing a valid URL. What's going on in there?
