Hi there.
if i launch the HTTPAccess snippet "HTTPAccess.dba" it will work but if i change the url to my own i get "Error 12029"
work code:
rem Secure HTTPS Access
`port=80 : access=0x00000000 : rem HTTP
port=443 : access=0x00800000 : rem HTTPS
the_website$="www.fpscreator.com"
the_webpage$="gamehost/whatismyip.php"
rem Connect to HTTP server
http connect the_website$,port
rem Make a data request
action$="" : return$=HTTP REQUEST DATA("POST", the_webpage$,action$,access)
rem Handle return strin
if return$<>""
`
rem Parse string to screen
print "YOUR IP IS : "+return$
`
else
`
rem No string returned
print "no data returned"
`
endif
`
rem Close connection
http disconnect
rem User wait
wait key
end
I tried on 2 website i have (one on a dedicaced served i own and administrate (windows server), and one on a shared hosted server (linux server) ) i get same error for both.
In theory if i change for "http://mydomain.tld/mypage.php" it's this code no ?
rem Secure HTTPS Access
port=80 : access=0x00000000 : rem HTTP
`port=443 : access=0x00800000 : rem HTTPS
the_website$="mydomain.tld"
the_webpage$="mypage.php"
rem Connect to HTTP server
http connect the_website$,port
rem Make a data request
action$="" : return$=HTTP REQUEST DATA("POST", the_webpage$,action$,access)
rem Handle return strin
if return$<>""
`
rem Parse string to screen
print "DATA IS : "+return$
`
else
`
rem No string returned
print "no data returned"
`
endif
But i get DATA IS: Send Request failed. Error Code:12029
How i can solve that ?
( i have full access on my own server )
Thanks for your reply.
Edit:
OK found why : "port" var doesnt work in the sample, "http connect" command use always the port 443
if i listen port 443 on my server it work.