01-08-2009, 08:13 AM
Macro
;IntPost and Http.PostFormData do the same but are used differently
;with IntPost
str s
IntPost "http://www.xxx.yyy/test/test.php" "name1=value1&name2=value2" s ;;names and values are urlencoded, like in browser address bar
;the same with Http.PostFormData
Http h.Connect("www.xxx.yyy")
ARRAY(POSTFIELD) a.create(2)
a[0].name="name1"; a[0].value="value1" ;;these are not urlencoded
a[1].name="name2"; a[1].value="value2" ;;these are not urlencoded
h.PostFormData("test/test.php" a s)
;Http.PostFormData2 is the same as Http.PostFormData, but has one more argument - flags. If flag 1 set, shows download progress.
h.PostFormData2("test/test.php" a s "" 0 0 0 0 1)