Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
open web page with POST variables
#2
With Internet Explorer:
Macro Macro2467
Code:
Copy      Help
;VARIANT flags=0
;VARIANT target="_blank"
VARIANT postdata
VARIANT headers = "Content-Type: application/x-www-form-urlencoded[]" ;;note []
str data="a=hello"

ARRAY(byte) a.create(data.len)
memcpy(&a[0] data a.len)
postdata.attach(a)

;SHDocVw.IWebBrowser2 b=web("" 8)
SHDocVw.IWebBrowser2 b=web("")
b.Navigate("http://siuhradweb/test.php" @ @ postdata headers)

Without Internet Explorer:
Macro Macro2471
Code:
Copy      Help
Http x.Connect("siuhradweb")
x.PostAdd("a" "hello")
;x.PostAdd("b" "hello")
;x.PostAdd("c" "hello")
x.PostFormData("test.php")
;to add headers:
;x.PostFormData("test.php" 0 0 headers)


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)