Page 1 of 1

How can i do Post Http ?

Posted: Sat Nov 05, 2016 4:27 pm
by skinkairewalker
hi veryone , i am trying do post method , but dont Works ...
someone have example to Post method of SB to PHP ?

Re: How can i do Post Http ?

Posted: Sat Nov 05, 2016 5:41 pm
by bbanelli
I am no expert, but it's quite easy, actually.

https://www.spiderbasic.com/documentati ... quest.html

So, basically:

Code: Select all

Procedure HTTP_Callback(Success, Result$, UserData)
  If Success
    Debug Result$ ;And do anything you wish with it
  Else
    Debug "Error..."
  EndIf
EndProcedure
HTTPRequest(#PB_HTTP_Post, "file.php", "your post data or variable containing it", @HTTP_Callback())
HTH,

Bruno