Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Get text from webpage
#31
That will probably not work because QM and IE use separate connections.

You can post with IE.

Macro
Code:
Copy      Help
out
str url="http://www.quickmacros.com/form2.php"
str post="a=1&b=2"

sel list("IntPost[]InternetExplorer.Navigate" _s.format("posts %s to %s" post url))
,case 1
,IntPost url post _s
,out _s
,
,case 2
,SHDocVw.InternetExplorer ie
,ie=web("" 8)
,;on Win XP and 200 also works: ie._create; ie.Visible=-1
,
,VARIANT v vh
,vh="Content-Type: application/x-www-form-urlencoded[]"
,
,ARRAY(byte) a.create(post.len)
,memcpy(&a[0] post a.len)
,v.attach(a)
,
,ie.Navigate(url @ @ v vh)
#32
with SHDocVw.InternetExplorer ie works.

Thanks.


Forum Jump:


Users browsing this thread: 1 Guest(s)