Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: TWebBrowser maximum URL/Title length?


This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 1 - Last Post: Sep 7, 2017 9:09 AM Last Post By: Markus Humm
Jeff McKay

Posts: 4
Registered: 2/27/14
TWebBrowser maximum URL/Title length?  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 6, 2017 8:24 PM
I've got a C++ Builder 2009 application, where a form has a TWebBrowser component. I am using it with an OAuth2 application - that is, I give the user a certain URL, he logs on, then the web site does a redirect to a URL that I specify. That URL contains an authorization code. The way I retrieve the data is by using the OnTitleChange event. This passes in a WideString variable which contains the data. My problem is that this variable seems to be getting cut off at 259 bytes. Is that really a limitation, or could I be doing something wrong? Is there a better way that I should be doing this so my data does not get cut off?
Markus Humm

Posts: 5,113
Registered: 11/9/03
Re: TWebBrowser maximum URL/Title length?  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 7, 2017 9:09 AM   in response to: Jeff McKay in response to: Jeff McKay
Am 07.09.2017 um 05:24 schrieb Jeff McKay:
I've got a C++ Builder 2009 application, where a form has a TWebBrowser component. I am using it with an OAuth2 application - that is, I give the user a certain URL, he logs on, then the web site does a redirect to a URL that I specify. That URL contains an authorization code. The way I retrieve the data is by using the OnTitleChange event. This passes in a WideString variable which contains the data. My problem is that this variable seems to be getting cut off at 259 bytes. Is that really a limitat
ion, or could I be doing something wrong? Is there a better way that I should be doing this so my data does not get cut off?

Hello,

if your app has originally been developped in C++ Builder 2009 it is
surely a VCL one and not a FMX one. There might be differences in their
TWebbrowser implementations...

Hint: post in the .public.delphi.vcl.components.using forum rather...

Greetings

Markus
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02