# Curl cannot access slim api pages

**URL:** <https://discourse.slimframework.com/t/curl-cannot-access-slim-api-pages/3498>\
**Category:** Questions\
**Created:** [October 2, 2019, 4:05pm UTC](https://discourse.slimframework.com/t/curl-cannot-access-slim-api-pages/3498 "2019-10-02T16:05:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rik1517](https://avatars.discourse-cdn.com/v4/letter/r/b2d939/32.png) [@rik1517](https://discourse.slimframework.com/u/rik1517)\
**Post date:** [October 2, 2019, 4:05pm UTC](https://discourse.slimframework.com/t/curl-cannot-access-slim-api-pages/3498/1 "2019-10-02T16:05:41Z")

</div>

Hello everybody,  
I need quick help,

problem as follows:

1. I have created a middleware using slimfrmework. One api URL is [https://www.mysite.xyzcom/api/v1/hello](https://www.mysite.xyzcom/api/v1/hello)
2. now, i also want to call this slim api url from another server but using curl.
3. but curl call is not working.
4. I know guzzle can help fast. but, its my client request, I have to do it using curl call.
5. if anybody can help me asap.

Thank you so much.

---

<div class="post-metadata">

**Author:** ![odan](https://avatars.discourse-cdn.com/v4/letter/o/9de053/32.png) [@odan](https://discourse.slimframework.com/u/odan)\
**Post date:** [October 2, 2019, 6:58pm UTC](https://discourse.slimframework.com/t/curl-cannot-access-slim-api-pages/3498/2 "2019-10-02T18:58:57Z")

</div>

Welcome @rik1517

> [@rik1517](#):
>
> but curl call is not working.

You have to provide more details about the Slim version, the (curl) request (example), the PHP code and the error message.
