# Network request failed

**URL:** <https://community.thunkable.com/t/network-request-failed/2931545>\
**Category:** Web API's\
**Tags:** help\
**Created:** [April 6, 2024, 1:03am UTC](https://community.thunkable.com/t/network-request-failed/2931545 "2024-04-06T01:03:39Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![samir.henry3rz](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/samir.henry3rz/32/176572_2.png) [@samir.henry3rz](https://community.thunkable.com/u/samir.henry3rz)\
**Post date:** [April 6, 2024, 1:03am UTC](https://community.thunkable.com/t/network-request-failed/2931545/1 "2024-04-06T01:03:39Z")

</div>

I’m new to thunkable and I’m trying to make an http request to a url, sending values ​​along with it. I’ve read several posts in the community, tested several options and models that users have posted, but I always get an error.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/4/c400bfcbc30dec5f59654176d859b6742fa42160.png)  
Whats wrong?  
…  
I did a test on postman and everything went well.  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/3/e34cb426657ba6119945ff1fba06adcdea0ce08f.png)

I need a lot of help. I’m new to block programming.

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [April 9, 2024, 8:58pm UTC](https://community.thunkable.com/t/network-request-failed/2931545/2 "2024-04-09T20:58:29Z")

</div>

Hello @samir.henry3rz  
To send the data as a body you need to use the “generate JSON from object” and “create object” block.

![image - 2024-04-09T233533.373](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/6/66f100716ded294a68515c51f72a8be01d383335.png)

![image - 2024-04-09T233554.101](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/d/6df417b1c987f3c691b153a729e2bc1e7d5dbec6.png)

Another way to send data is using Query parameters, you can find more information in our docs: [Web APIs Blocks | Drag and Drop | Thunkable Docs](https://docs.thunkable.com/blocks/advanced-app-features/web-api#setting-query-parameters-and-headers)

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [April 10, 2024, 1:08am UTC](https://community.thunkable.com/t/network-request-failed/2931545/3 "2024-04-10T01:08:56Z")

</div>

In postman you are sending data as url parameters. You are not sending them in the body of the request. Add those values to your url and try again

---

<div class="post-metadata">

**Author:** ![samir.henry3rz](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/samir.henry3rz/32/176572_2.png) [@samir.henry3rz](https://community.thunkable.com/u/samir.henry3rz)\
**Post date:** [April 10, 2024, 9:07am UTC](https://community.thunkable.com/t/network-request-failed/2931545/4 "2024-04-10T09:07:37Z")

</div>

I had already tried every way, but finally I discovered that the problem was with my domain hosted on Locaweb (hosting site). I confirmed this once I created a free subdomain on 000webhost and was able to upload the data to my .php file.

---

<div class="post-metadata">

**Author:** ![samir.henry3rz](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/samir.henry3rz/32/176572_2.png) [@samir.henry3rz](https://community.thunkable.com/u/samir.henry3rz)\
**Post date:** [April 10, 2024, 9:09am UTC](https://community.thunkable.com/t/network-request-failed/2931545/5 "2024-04-10T09:09:44Z")

</div>

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/4/746eef542e9fd7a1e2d3ebbebfafcfbbdca9bd9e.png)  
I switched to this way, but I discovered that 000webhost has problems receiving requests from my app when I’m in the live test using cell phone mobile data.

---

<div class="post-metadata">

**Author:** ![samir.henry3rz](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/samir.henry3rz/32/176572_2.png) [@samir.henry3rz](https://community.thunkable.com/u/samir.henry3rz)\
**Post date:** [April 10, 2024, 9:11am UTC](https://community.thunkable.com/t/network-request-failed/2931545/6 "2024-04-10T09:11:57Z")

</div>

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/3/93d0a980b89767603c9af12a5a40751566df23cb.png)  
This is my .php file that must receive the values ​​to perform user authentication with mysql.

---

<div class="post-metadata">

**Author:** ![samir.henry3rz](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/samir.henry3rz/32/176572_2.png) [@samir.henry3rz](https://community.thunkable.com/u/samir.henry3rz)\
**Post date:** [April 10, 2024, 9:12am UTC](https://community.thunkable.com/t/network-request-failed/2931545/7 "2024-04-10T09:12:54Z")

</div>

It’s currently working, but I’m still going to contact support for my domain at Locaweb to try to resolve the problem.
