# 400 Bad Request Error

**URL:** <https://forum.infinityfree.com/t/400-bad-request-error/58484>\
**Category:** Hosting Support\
**Created:** [February 25, 2022, 1:49am UTC](https://forum.infinityfree.com/t/400-bad-request-error/58484 "2022-02-25T01:49:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon10025685](https://forum.infinityfree.com/letter_avatar/anon10025685/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon10025685](https://forum.infinityfree.com/u/anon10025685)\
**Post date:** [February 25, 2022, 1:49am UTC](https://forum.infinityfree.com/t/400-bad-request-error/58484/1 "2022-02-25T01:49:52Z")

</div>

### Username

epiz\_31069478L

### Error Message

400 bad request

### Other Information

In a folder in my webhost I created one html form that send a file from my PC to a PHP file in the same folder and PHP file action is only to echo name of file sent by html form .  
when I browse the HTML file from URL address of my website and send a file , the PHP file will echo the file name correctly but if I make the same html file in my PC and browse it to send a file to PHP file there is a 400 Bad Request Error .

what is the reason for this error and how to solve it ?

---

<div class="post-metadata">

**Author:** ![KangJL](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/kangjl/32/12130_2.png) [@KangJL](https://forum.infinityfree.com/u/KangJL)\
**Post date:** [February 25, 2022, 5:44am UTC](https://forum.infinityfree.com/t/400-bad-request-error/58484/2 "2022-02-25T05:44:52Z")

</div>

Take note of this

> [@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:** ![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 25, 2022, 9:07am UTC](https://forum.infinityfree.com/t/400-bad-request-error/58484/3 "2022-02-25T09:07:16Z")

</div>

Hmm, I don’t know exactly what could be causing this. “400 Bad Request” simply means that the server doesn’t like your input. But what’s wrong with your input, or what is refusing the request to begin with, I don’t know.

Could you please answer these questions to help figure it out?

- How big is the file you’re trying to upload, and what is the file type?
- What does the error page look like exactly? A screenshot of the page could help us determine what generated it.
- If possible, could you provide a link to your page so we can try it ourselves?

---

<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:** [March 4, 2022, 9:07am UTC](https://forum.infinityfree.com/t/400-bad-request-error/58484/4 "2022-03-04T09:07:22Z")

</div>

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