1. I try to use TWebbrowser.Navigate to "POST" (request method) some string:
string URLStr := 'http://nt-aaa//cgi-bin/function.exe';
OleVariant PostData := 'post something please';
OleVariant Flags := 1;
OleVariant Headers := '';
OleVariant TargeFrameName := '';
WebBrowser.Navigate(URLStr, Flags, TargeFrameName, PostData, Headers);
2. But every time I get only "GET" (request method)
3. What I am doing wrong ?
Thanks
Sergej
Check this page: http://members.home.com/hfournier/. See
FAQS/WebBrowser/Advanced where it shows how post data must be sent.
[]'s Ronaldo
Sergej Alexandrow <salex...@softtech.com> wrote in message
news:390ec418@dnews...
1. I think I am still doing something wrong as I set Headers to this
value.
{Require this header information if there is stPostData.}
Headers:= 'Content-Type: application/x-www-form-urlencoded'+ #10#13#0;
2. Because even with this Headers i get only "GET":
Sergej
Ronaldo Melo Ferraz schrieb in Nachricht <390f1b87@dnews>...
Well, I tested the code and it worked. I do get a POST request. Maybe
the problem is in the server side.
[]'s Ronaldo, not Rolando :-)
Sergej Alexandrow <salex...@softtech.com> wrote in message
news:390f211f@dnews...
1. Yes, you are right.
2. That was my false.
PostData should be changed in the discribed way from string to
OleVariant.
3. That code is OK, thought I don't undestoand it.
Thanks a lot
Sergej
Ronaldo Melo Ferraz schrieb in Nachricht <390f4017@dnews>...