Read .txt file from my website without enabling JavaScript (C#)


#1

I am trying to read a text file from my website using a WebClient or HttpWebRequest in C#, however they always return that I need to enable JavaScript, when this is just a text file (however, it contains basic HTML)

Is there any way to make my website not need JavaScript for .txt files, or a different method to fix this?

This is what I get (aside from a clunk of html)
This site requires Javascript to work, please enable Javascript in your browser or use a browser with Javascript support

Thank you.


#2

No, you can only host websites on InfinityFree, not API backends. Only clients which support javascript and cookies can access any content hosted on InfinityFree.


closed #3