Just starting out? Need help? Post your questions and find answers here.
-
ebelouet
- Posts: 21
- Joined: Mon Apr 08, 2019 9:46 am
Post
by ebelouet »
HI,
why en this example I don't receive number 12 on debug ?
Code: Select all
Procedure HttpGetEvent(Success, Result$, UserData)
If Success
Debug Result$
Debug UserData
Else
Debug "HTTPRequest(): Error"
EndIf
EndProcedure
;http://spider.ebconnections.com/request/getVerifLogin.php?&userAdresse=eric&userpwd=marine
;#PB_HTTP_Get #PB_HTTP_Post
params.s = "?&userAdresse=eric" + "&userpwd=marine"
HTTPRequest(#PB_HTTP_Post,"http://spider.ebconnections.com/request/getVerifLogin.php",params.s,@HttpGetEvent())
Sincerely
Eric
// Edit: Code-Tags added (Peter)
-
Peter
- Posts: 1093
- Joined: Mon Feb 24, 2014 10:17 pm
- Location: 127.0.0.1:9080
-
Contact:
Post
by Peter »
Add this one to your getVerifLogin.php
Code: Select all
<?php
header("Access-Control-Allow-Origin: *");
After deploying your SpiderBasic-Project to spider.ebconnections.com, you should remove this line.
Greetings ... Peter
-
ebelouet
- Posts: 21
- Joined: Mon Apr 08, 2019 9:46 am
Post
by ebelouet »
Hi,
thank you very much, its working very well now.
Eric