Problem with WebBrowser.Navigate()

Hello Delphi experts!

I need to do a Webbrowser.Navigate with POST. That means, I use Webrowser.Navigate(Url, Flags, Target, PostData). Url is of type WideString, Flags, Target und PostData of var OleVariant. Please read http://msdn.microsoft.com/workshop/browser/webbrowser/reference/Methods/Navigate.asp

As for PostData, Microsoft said: http://support.microsoft.com/support/kb/articles/Q174/9/23.ASP

I wondered very much about that PostData needs an ANSI string. As every Delphi expert knows that in OleVariant variables only WideString values can be stored.

Please look hard at the

PostData = StrConv(PostData, vbFromUnicode)

statement in the Visual Basic example how to use PostData. How to do the same in Delphi?? Or does someone know how to use the PostData in another way?
LVL 3
dnoelppAsked:
Who is Participating?
 
TOndrejConnect With a Mentor Commented:
See article "Automating Internet Explorer to POST Form Data" http://community.borland.com/article/0,1410,26531,00.html
0
 
dnoelppAuthor Commented:
Thanks Tondrej, tried it out already. Was a quick one for you, wasn't it? :-)
0
 
TOndrejCommented:
yep I love my Google toolbar :-)
thanks for points
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.