How can i do Post Http ?

Just starting out? Need help? Post your questions and find answers here.
skinkairewalker
Posts: 120
Joined: Tue Jun 14, 2016 7:17 pm

How can i do Post Http ?

Post by skinkairewalker »

hi veryone , i am trying do post method , but dont Works ...
someone have example to Post method of SB to PHP ?
bbanelli
Posts: 107
Joined: Mon Jul 13, 2015 7:40 am

Re: How can i do Post Http ?

Post 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
"If you lie to the compiler, it will get its revenge."
Henry Spencer
http://www.pci-z.com/
Post Reply