Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

WebBrowser.Navigate(URLStr, Flags, TargeFrameName, PostData, Headers);

587 views
Skip to first unread message

Sergej Alexandrow

unread,
May 2, 2000, 3:00:00 AM5/2/00
to
Hi,

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

Ronaldo Melo Ferraz

unread,
May 2, 2000, 3:00:00 AM5/2/00
to
Hi,

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...

Sergej Alexandrow

unread,
May 2, 2000, 3:00:00 AM5/2/00
to
Thanks Rolando,

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>...

Ronaldo Melo Ferraz

unread,
May 2, 2000, 3:00:00 AM5/2/00
to
Hi,

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...

Sergej Alexandrow

unread,
May 2, 2000, 3:00:00 AM5/2/00
to
Hi Ronaldo,

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>...

0 new messages