# Can an EDGE use the webDev module to connect with the HTTP method for a Standard project?

**URL:** <https://forum.inductiveautomation.com/t/can-an-edge-use-the-webdev-module-to-connect-with-the-http-method-for-a-standard-project/109392>\
**Category:** Ignition\
**Tags:** edge, webdev\
**Created:** [August 5, 2025, 3:37pm UTC](https://forum.inductiveautomation.com/t/can-an-edge-use-the-webdev-module-to-connect-with-the-http-method-for-a-standard-project/109392 "2025-08-05T15:37:08Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![xmedmac](https://avatars.discourse-cdn.com/v4/letter/x/96bed5/32.png) [@xmedmac](https://forum.inductiveautomation.com/u/xmedmac)\
**Post date:** [August 5, 2025, 3:37pm UTC](https://forum.inductiveautomation.com/t/can-an-edge-use-the-webdev-module-to-connect-with-the-http-method-for-a-standard-project/109392/1 "2025-08-05T15:37:08Z")

</div>

Hi everyone,  
Lately, I have been looking for ways to enable SQL transactions from an Edge project to the database configured in a Standard project.  
I know that the Edge panel does not have a database connection, but I would like to know if there is a way to do this with another tool.  
I have installed the webDev module on both gateways and tried to do it using the HTTP POST method using an action performed of the button, but I haven't been able to. I get a 405 error.  
I assume the method is not available in Edge Project, is that right? How can I do it?  
Thank you for your suggestion.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/7/2/72fba46a43769b5985043cec1d946e32a70a91b7.png)  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/5/a/5acb63c1e29f783724f564fc81025c36ebcc9d05.png)  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/8/e/8e92daceef765f86afae28b1a2b6c12abb0e1b69.png)

---

<div class="post-metadata">

**Author:** ![ryan.white](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ryan.white/32/73193_2.png) [@ryan.white](https://forum.inductiveautomation.com/u/ryan.white)\
**Post date:** [August 5, 2025, 3:54pm UTC](https://forum.inductiveautomation.com/t/can-an-edge-use-the-webdev-module-to-connect-with-the-http-method-for-a-standard-project/109392/2 "2025-08-05T15:54:31Z")

</div>

Your edge project event script is pointing at `localhost` for the HTTP Post, which is, unless your standard project is on the edge panel, the wrong endpoint to target. Get the IP of the standard project gateway and use that instead.

Assuming the amount of data to send is small, consider using [`system.util.sendMessage`](https://www.docs.inductiveautomation.com/docs/8.1/appendix/scripting-functions/system-util/system-util-sendMessage) or [`system.util.sendRequest`](https://www.docs.inductiveautomation.com/docs/8.1/appendix/scripting-functions/system-util/system-util-sendRequest) on the edge server to send a message to the main server with the data to handle. This does not require the webdev module.

Also, webdev module is not required to make HTTP requests, just to handle them.

Screenshots are nice for context, but please also post code as preformatted text to help speed up troubleshooting for others, see [Wiki - how to post code on this forum](https://forum.inductiveautomation.com/t/wiki-how-to-post-code-on-this-forum/77831).

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [August 5, 2025, 4:12pm UTC](https://forum.inductiveautomation.com/t/can-an-edge-use-the-webdev-module-to-connect-with-the-http-method-for-a-standard-project/109392/3 "2025-08-05T16:12:27Z")

</div>

> [@ryan.white](#):
>
> Assuming the amount of data to send is small, consider using [`system.util.sendMessage`](https://www.docs.inductiveautomation.com/docs/8.1/appendix/scripting-functions/system-util/system-util-sendMessage) or [`system.util.sendRequest`](https://www.docs.inductiveautomation.com/docs/8.1/appendix/scripting-functions/system-util/system-util-sendRequest) on the edge server to send a message to the main server with the data to handle. This does not require the webdev module.

This.

If the amount of data is **not** small, you should reconsider whether Edge is the right platform.

---

<div class="post-metadata">

**Author:** ![xmedmac](https://avatars.discourse-cdn.com/v4/letter/x/96bed5/32.png) [@xmedmac](https://forum.inductiveautomation.com/u/xmedmac)\
**Post date:** [August 5, 2025, 7:46pm UTC](https://forum.inductiveautomation.com/t/can-an-edge-use-the-webdev-module-to-connect-with-the-http-method-for-a-standard-project/109392/4 "2025-08-05T19:46:17Z")

</div>

Now I'm trying it with **system.util.sendMessage.**  
In the Edge panel, I add a new button with action performed with the following script:

```python
payload = {
    "valor1": 1,
    "valor2": 2,
    "valor3": 3,
    "valor4": "hi",
    "valor5": "hi",
    "valor6": "hi",
    "valor7": "hi",
    "valor8": 4,
    "valor9": 10,
    "valor10": 111,
    "valor11": 200
    }
	response = system.util.sendMessage(
    project="IAPS",  
    messageHandler="a",
    payload=payload,
    scope="G")

```

And, in the project called IAPS into Ignition Standart Server, I add a new Message Handler into the Session Events called "a". With the following script:  
\*\*\* I added a logger to verify the execution of the script. But I could omit it.\*

```python
logger = system.util.getLogger("myLogger")
logger.info("executed")

# Script: insertHandler
params = payload
query = """
	INSERT INTO recipes (userId,name,cuisine,difficulty,image,servings,cookTimeMinutes,prepTimeMinutes,reviewount,caloriesPerServing,rating) VALUES (?, ?,?,?,?,?,?,?,?,?,?)
	"""
system.db.runPrepUpdate(query, [params["valor1"], params["valor2"],params["valor3"],params["valor4"],params["valor5"],params["valor6"],params["valor7"],params["valor8"],params["valor9"],params["valor10"]],params["valor11"], database="test")
	

```

I don't have any errors, but it doesn't insert into the database either. What could it be?

---

<div class="post-metadata">

**Author:** ![ryan.white](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ryan.white/32/73193_2.png) [@ryan.white](https://forum.inductiveautomation.com/u/ryan.white)\
**Post date:** [August 5, 2025, 7:49pm UTC](https://forum.inductiveautomation.com/t/can-an-edge-use-the-webdev-module-to-connect-with-the-http-method-for-a-standard-project/109392/5 "2025-08-05T19:49:23Z")

</div>

You didn't define the remote servers argument, so the message is only being delivered to the edge gateway in your button script. I believe you need to use the server name as it appears in the GAN connection.

> **[system.util.sendMessage | Ignition User Manual](https://www.docs.inductiveautomation.com/docs/8.1/appendix/scripting-functions/system-util/system-util-sendMessage#parameters)**
>
> This function sends a message to clients running under the Gateway, or to a project within the Gateway itself.

Also, your handler should be under 'Gateway Events', not 'Session Events'

---

<div class="post-metadata">

**Author:** ![xmedmac](https://avatars.discourse-cdn.com/v4/letter/x/96bed5/32.png) [@xmedmac](https://forum.inductiveautomation.com/u/xmedmac)\
**Post date:** [August 5, 2025, 8:33pm UTC](https://forum.inductiveautomation.com/t/can-an-edge-use-the-webdev-module-to-connect-with-the-http-method-for-a-standard-project/109392/6 "2025-08-05T20:33:05Z")

</div>

Ryan, your suggestion to switch from `httpPost` to `system.util.sendMessaget()` made all the difference. I was able to successfully complete the data insertion from the Edge Panel to the Gateway thanks to your explanation. Really appreciate your help and the time you took to guide me!
