>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.1" )

URL = "http://server/cgi-bin/test.sh";
Flags = 0
TargetFrame = ""
Data = "this=that&test=big%20success"
PostData = buffer( Data )
Headers = "Content-Type: application/x-www-form-urlencoded\r\n"

# show it to the user
ie.Visible = True
ie.Navigate( URL, Flags, TargetFrame, PostData, Headers )
---End Python Code---

_______________________________________________
Python-win32 mailing list
Python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to