# HttpGet(sample code) don't work on WP7605. "failed to read /etc/resolv.conf: Permission denied"

**URL:** <https://forum.legato.io/t/httpget-sample-code-dont-work-on-wp7605-failed-to-read-etc-resolv-conf-permission-denied/6279>\
**Category:** Legato Application Framework\
**Created:** [August 31, 2022, 1:51pm UTC](https://forum.legato.io/t/httpget-sample-code-dont-work-on-wp7605-failed-to-read-etc-resolv-conf-permission-denied/6279 "2022-08-31T13:51:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![AFJ](https://avatars.discourse-cdn.com/v4/letter/a/46a35a/32.png) [@AFJ](https://forum.legato.io/u/AFJ)\
**Post date:** [August 31, 2022, 1:51pm UTC](https://forum.legato.io/t/httpget-sample-code-dont-work-on-wp7605-failed-to-read-etc-resolv-conf-permission-denied/6279/1 "2022-08-31T13:51:50Z")

</div>

I tried to work httpGet(sample code) on WP7605.  
But, it don’t work on WP7605.  
The following is a part of logread output.  
“failed to read /etc/resolv.conf: Permission denied”

Why no permission?

Using “chmod o+x /etc/resolv.conf”, I can confirm httpGet sample code working.  
But, that’s no good, because the permission of /etc/resolv.conf is updated automatically.

Devlopment enviroment : Vscode (Legato Plugin for VSCode, swi-wp76\_5.0.4)  
Device: WP7605

Please tell me what I should do.  
Best regards, Akihito Fujikake.

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [August 31, 2022, 3:08pm UTC](https://forum.legato.io/t/httpget-sample-code-dont-work-on-wp7605-failed-to-read-etc-resolv-conf-permission-denied/6279/2 "2022-08-31T15:08:31Z")

</div>

Here says you need to use unsandboxed app or using real ip address inside the .c file

> [@Cannot Sandbox App](https://forum.legato.io/t/cannot-sandbox-app/5554/5):
>
> Ok after instaling the httpGet example i get the exact same problem. When Sandboxed i get “Cannot resolve Hostname”, but unsandboxed it works fine. (I didn’t change anything in the sample app, except the sandbox state for testing)

Or you can try swi-wp76\_5.2.0 with legato 20.08

> [@MQTT Connection issues on WP7702 \[AWS\]](https://forum.legato.io/t/mqtt-connection-issues-on-wp7702-aws/5617/4):
>
> seems related to this one: I remember when I used the httpget sample with WP76 module, there is same problem of getting IP address inside application and this is fixed in later FW with legato 20.04. Currently you might try method to get IP addres inside program:

---

<div class="post-metadata">

**Author:** ![AFJ](https://avatars.discourse-cdn.com/v4/letter/a/46a35a/32.png) [@AFJ](https://forum.legato.io/u/AFJ)\
**Post date:** [September 1, 2022, 9:33am UTC](https://forum.legato.io/t/httpget-sample-code-dont-work-on-wp7605-failed-to-read-etc-resolv-conf-permission-denied/6279/3 "2022-09-01T09:33:17Z")

</div>

Using “sandbox: false”, httpGet sample stated to work.  
Thank you very much, jyijyi!!
