HTTP_GET throws Bad_Host Error
#1

Hey,

I am trying to do a simple Request but it seems like i can't even connect to the server, i have already tried it with a local server and with a non local server, it just won't work.
I already tried deactivating my firewall but that's also useless, anyways that shouldn't be necessary since i tried it on localhost and the file permissions are also correct.
Does anyone know what the problem could be?
I guess u don't need any code here but still here:

PHP код:
HTTP(1,HTTP_GET"ftp://user1@127.0.0.1/nope.txt""""MyHttpResponse"); 
greetings Marcel
Reply
#2

The clue is in the name - the function is called HTTP, not FTP...
Reply
#3

i also tried it with http ^^

PHP код:
    HTTP(1,HTTP_GET"http://noscams.bplaced.net/nope.html""""MyHttpResponse"); 
but that didnt work so i tried it directly per ftp
Reply
#4

Take a look at how it's used: https://sampwiki.blast.hk/wiki/HTTP

url[] The URL you want to request. (Without 'http://')
Reply
#5

if you mean that i try it with a .html file i also tried that with .txt and the "playerid" is just a number u can user any number, so if u know the mistake , tell me cuz i can't see it
Reply
#6

never mind, now i got it, it was the "http://"

thanks man
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)