Re: [python-win32] win32com: HTTP Post with WebBrowser.Navigate()

2005-08-29 Thread Troy Farrell
>Try PostData=buffer(Data). > >hth > Roger Roger, this is exactly the solution I needed. Thanks! For future reference, the working code is below: ---Begin Python Code--- import win32com.client # Prepare Internet Explorer ie = win32com.client.Dispatch( "InternetExplorer.Application.

Re: [python-win32] win32com: HTTP Post with WebBrowser.Navigate()

2005-08-26 Thread Troy Farrell
I've made some progress. I finally coerced IE to POST, but the data it posts is ugly binary data, not what I thought I sent in PostData: ---Begin Python Code--- import win32com.client # Prepare Internet Explorer ie = win32com.client.Dispatch( "InternetExplorer.Application.1" ) dURL = "http://se

[python-win32] win32com: HTTP Post with WebBrowser.Navigate()

2005-08-26 Thread Troy Farrell
Hello List! I am trying to use win32com to automate Internet Explorer. I am able to instanciate my COM object, and even control IE, but using WebBrowser.Navigate() to execute an HTTP POST request fails; the browser always makes a GET request. The MS KB article on doing this with VB is here: http