# I am not able to make REST request

**URL:** <https://forum.infinityfree.com/t/i-am-not-able-to-make-rest-request/57610>\
**Category:** Hosting Support\
**Created:** [February 2, 2022, 2:12pm UTC](https://forum.infinityfree.com/t/i-am-not-able-to-make-rest-request/57610 "2022-02-02T14:12:34Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon96701501](https://forum.infinityfree.com/letter_avatar/anon96701501/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon96701501](https://forum.infinityfree.com/u/anon96701501)\
**Post date:** [February 2, 2022, 2:12pm UTC](https://forum.infinityfree.com/t/i-am-not-able-to-make-rest-request/57610/1 "2022-02-02T14:12:34Z")

</div>

### Username (e.g. epiz\_XXX) or Website URL

epiz\_30951833 and krishna-acharya.rf.gd

### Error Message

405 Method Not Allowed

### Other Information

Thank you for your free hosting services.  
I have hosted a site, which makes GET, DELETE, POST, PUT, PATCH, GET  
however, i am able to mage get request but other methods are blocked

---

<div class="post-metadata">

**Author:** ![Greenreader9](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/greenreader9/32/22847_2.png) [@Greenreader9](https://forum.infinityfree.com/u/Greenreader9)\
**Post date:** [February 2, 2022, 2:14pm UTC](https://forum.infinityfree.com/t/i-am-not-able-to-make-rest-request/57610/2 "2022-02-02T14:14:39Z")

</div>

> [@anon96701501](#):
>
> i am able to mage get request but other methods are blocked

Can you please star what these “other” methods are for?

Also, are these SQL statements, or something else?

Thanks!

---

<div class="post-metadata">

**Author:** ![anon96701501](https://forum.infinityfree.com/letter_avatar/anon96701501/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon96701501](https://forum.infinityfree.com/u/anon96701501)\
**Post date:** [February 2, 2022, 2:37pm UTC](https://forum.infinityfree.com/t/i-am-not-able-to-make-rest-request/57610/3 "2022-02-02T14:37:15Z")

</div>

These are http methods which are implemented in projects with restful api.  
My project makes use of restful api, for deleting, creating, updating the resources of the site. This project demonstrate my skill on restful api and other programming patterns to the recruiter.  
I would be very thankful if you allow these methods on http request.  
Thank you

---

<div class="post-metadata">

**Author:** ![Greenreader9](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/greenreader9/32/22847_2.png) [@Greenreader9](https://forum.infinityfree.com/u/Greenreader9)\
**Post date:** [February 2, 2022, 2:38pm UTC](https://forum.infinityfree.com/t/i-am-not-able-to-make-rest-request/57610/4 "2022-02-02T14:38:41Z")

</div>

It sounds like this security block may be preventing you.

> [@Ensuring only web browsers can access your website](https://forum.infinityfree.com/t/ensuring-only-web-browsers-can-access-your-website/49353):
>
> InfinityFree is a website hosting service. That means that the hosting accounts we provided are intended for hosting websites. Websites contain pages that are accessed through web browsers. InfinityFree is not intended to be used for file sharing, API hosting, database hosting or background tasks/tools. To help enforce this, free hosting enforces a security system that makes sure that anyone trying to access your website is using a normal web browser. This is done by checking whether the web br…

---

<div class="post-metadata">

**Author:** ![anon96701501](https://forum.infinityfree.com/letter_avatar/anon96701501/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon96701501](https://forum.infinityfree.com/u/anon96701501)\
**Post date:** [February 2, 2022, 3:07pm UTC](https://forum.infinityfree.com/t/i-am-not-able-to-make-rest-request/57610/5 "2022-02-02T15:07:10Z")

</div>

Thank you for sharing the link and the information on it. I have completely read security policy and completely agree with it, however, the restful request being made does not violate and fall under any of the mentioned criteria. and also the request are also made with in the same domain ie it is not a Cross Origin Request. so i request you review on this issue again.  
Thank you

---

<div class="post-metadata">

**Author:** ![Greenreader9](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/greenreader9/32/22847_2.png) [@Greenreader9](https://forum.infinityfree.com/u/Greenreader9)\
**Post date:** [February 2, 2022, 3:11pm UTC](https://forum.infinityfree.com/t/i-am-not-able-to-make-rest-request/57610/6 "2022-02-02T15:11:58Z")

</div>

Got it.

I actually don’t know that much about REST requests or how they work, so someone else will certainly be able to help you better than I can.

---

<div class="post-metadata">

**Author:** ![Admin](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/admin/32/36437_2.png) [@Admin](https://forum.infinityfree.com/u/Admin)\
**Post date:** [February 2, 2022, 3:25pm UTC](https://forum.infinityfree.com/t/i-am-not-able-to-make-rest-request/57610/7 "2022-02-02T15:25:37Z")

</div>

POST requests should definitely work, because basically any website with any kind of interactive content uses them.

I took a quick look at your site to see what it was built with.

Are you sure that this response is not generated by your code? If you use a complex web framework, you may have to specify which for which request method your route is available. And if you define a route as being a GET route, then the code will refuse other request methods.

---

<div class="post-metadata">

**Author:** ![anon96701501](https://forum.infinityfree.com/letter_avatar/anon96701501/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon96701501](https://forum.infinityfree.com/u/anon96701501)\
**Post date:** [February 2, 2022, 3:39pm UTC](https://forum.infinityfree.com/t/i-am-not-able-to-make-rest-request/57610/8 "2022-02-02T15:39:28Z")

</div>

Yes, i am sure that this is not being generated by my code. GET and POST methods works fine, but when i try to make DELETE or PUT or PATCH request, then i get this error. I have also try to check it by returning text on the very first line of my code. ie i die(“hello”) on first file and first line of code. even then i am getting this error. then i realise that the server is blocking the request method.

---

<div class="post-metadata">

**Author:** ![Admin](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/admin/32/36437_2.png) [@Admin](https://forum.infinityfree.com/u/Admin)\
**Post date:** [February 2, 2022, 4:08pm UTC](https://forum.infinityfree.com/t/i-am-not-able-to-make-rest-request/57610/9 "2022-02-02T16:08:41Z")

</div>

Ah right. You said only GET works, which shouldn’t be the case. POST should also work.

The other HTTP keywords are indeed blocked on our end. I don’t know why they are blocked, but I do know that websites rarely use them.

---

<div class="post-metadata">

**Author:** ![anon96701501](https://forum.infinityfree.com/letter_avatar/anon96701501/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon96701501](https://forum.infinityfree.com/u/anon96701501)\
**Post date:** [February 2, 2022, 8:35pm UTC](https://forum.infinityfree.com/t/i-am-not-able-to-make-rest-request/57610/10 "2022-02-02T20:35:51Z")

</div>

Websites using restful technology, which is very common technology these days, requires these http methods. Is there any way you can allow these methods? This would be very helpful for the programmers like me. so we can host websites developed on these technology and demonstrate our skill to the recruiter.

---

<div class="post-metadata">

**Author:** ![Admin](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/admin/32/36437_2.png) [@Admin](https://forum.infinityfree.com/u/Admin)\
**Post date:** [February 3, 2022, 7:48pm UTC](https://forum.infinityfree.com/t/i-am-not-able-to-make-rest-request/57610/11 "2022-02-03T19:48:34Z")

</div>

REST is very common technology, yes, but primarily for APIs, not websites.

We can probably allow these methods if there is sufficient demand. But seeing how we only get one request every few years about it, apparently it’s not that big of a problem.

---

<div class="post-metadata">

**Author:** ![system](https://infinityfree-forum-uploads.s3.dualstack.eu-central-1.amazonaws.com/original/3X/b/0/b024fd3fa88bae093c9576e55c2c94e33f890206.svg) [@system](https://forum.infinityfree.com/u/system)\
**Post date:** [February 10, 2022, 7:49pm UTC](https://forum.infinityfree.com/t/i-am-not-able-to-make-rest-request/57610/12 "2022-02-10T19:49:01Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
