# Communication between server and c++ winsocket

**URL:** <https://forum.infinityfree.com/t/communication-between-server-and-c-winsocket/75448>\
**Category:** Hosting Support\
**Created:** [April 29, 2023, 7:37am UTC](https://forum.infinityfree.com/t/communication-between-server-and-c-winsocket/75448 "2023-04-29T07:37:47Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon74967926](https://forum.infinityfree.com/letter_avatar/anon74967926/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon74967926](https://forum.infinityfree.com/u/anon74967926)\
**Post date:** [April 29, 2023, 7:37am UTC](https://forum.infinityfree.com/t/communication-between-server-and-c-winsocket/75448/1 "2023-04-29T07:37:47Z")

</div>

### Website URL

([http://illusionary.rf.gd/](http://illusionary.rf.gd/))

### Error Message

HTTP/1.1 200 OK  
Server: nginx  
Date: Sat, 29 Apr 2023 07:30:39 GMT  
Content-Type: text/html  
Content-Length: 844  
Connection: close  
Vary: Accept-Encoding  
Expires: Thu, 01 Jan 1970 00:00:01 GMT  
Cache-Control: no-cache

This site requires Javascript to work, please enable Javascript in your browser or use a browser with
### Other Information

So I am trying to send a request from my c++ client to my backend script. I previously used xampp to locally host everything and there it worked just fine. However, when I send a request from my c++ client, I get that error for some reason and I am unsure what it means. Does the server not support raw HTTP requests? or is it that it can’t handle a request body?

---

<div class="post-metadata">

**Author:** ![anon74967926](https://forum.infinityfree.com/letter_avatar/anon74967926/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon74967926](https://forum.infinityfree.com/u/anon74967926)\
**Post date:** [April 29, 2023, 7:45am UTC](https://forum.infinityfree.com/t/communication-between-server-and-c-winsocket/75448/2 "2023-04-29T07:45:21Z")

</div>

full error message:

HTTP/1.1 200 OK  
Server: nginx  
Date: Sat, 29 Apr 2023 07:44:28 GMT  
Content-Type: text/html  
Content-Length: 836  
Connection: close  
Vary: Accept-Encoding  
Expires: Thu, 01 Jan 1970 00:00:01 GMT  
Cache-Control: no-cache

This site requires Javascript to work, please enable Javascript in your browser or use a browser with Javascript support

---

<div class="post-metadata">

**Author:** ![anon74967926](https://forum.infinityfree.com/letter_avatar/anon74967926/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon74967926](https://forum.infinityfree.com/u/anon74967926)\
**Post date:** [April 29, 2023, 7:46am UTC](https://forum.infinityfree.com/t/communication-between-server-and-c-winsocket/75448/3 "2023-04-29T07:46:17Z")

</div>

or not, it did not let me send the entire message? Here is a screenshot then:

[https://i.imgur.com/DbW7TsU.png](https://i.imgur.com/DbW7TsU.png)

---

<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:** [April 29, 2023, 7:54am UTC](https://forum.infinityfree.com/t/communication-between-server-and-c-winsocket/75448/4 "2023-04-29T07:54:29Z")

</div>

> [@anon74967926](#):
>
> This site requires Javascript to work, please enable Javascript in your browser or use a browser

Likely due to 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…

Take note IF is meant for webhosting.  
Only PHP and MySQL are supported

If C++ is on server-side, it will not work

---

<div class="post-metadata">

**Author:** ![anon74967926](https://forum.infinityfree.com/letter_avatar/anon74967926/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon74967926](https://forum.infinityfree.com/u/anon74967926)\
**Post date:** [April 29, 2023, 8:20am UTC](https://forum.infinityfree.com/t/communication-between-server-and-c-winsocket/75448/5 "2023-04-29T08:20:59Z")

</div>

Well, the c++ is not on the serverside. It’s a client which I stated. But from your link I’d assume I need paid hosting if I want to be able to send requests toi the serevr from my c++ client.

---

<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:** [April 29, 2023, 12:13pm UTC](https://forum.infinityfree.com/t/communication-between-server-and-c-winsocket/75448/6 "2023-04-29T12:13:05Z")

</div>

> [@anon74967926](#):
>
> I need paid hosting if I want to be able to send requests toi the serevr from my c++ client.

Correct.

Non-web browsers cannot make requests to your website. This is to help prevent agents attacks on your site.

---

<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:** [May 6, 2023, 12:13pm UTC](https://forum.infinityfree.com/t/communication-between-server-and-c-winsocket/75448/7 "2023-05-06T12:13:33Z")

</div>

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