On 15 Sep 2007 John-Mark Bell wrote:

> On Sat, 15 Sep 2007, Richard Porter wrote:

>> It appears that NetSurf truncates a link to 255 characters. I've just
>> received an invoice notification that contains two PayPal links which
>> well exceed 511 characters.
>>
>> I'm sure that links on web pages can be longer, but why is this
>> limitation imposed on entered URLs including those generated by a mail
>> client? Is it just arbitrary or is it an RFC?

> NetSurf has no hard-coded limits on URL length. There is a known issue
> with URL completion and long URLs but this is unlikely to have any effect
> in this case. You haven't said how you're entering URLs, so I've no idea
> quite what the problem might be.

I've tried to open the link in several ways:
- clicking on the link in a text message in Messenger Pro,
- copying it out of MPro and pasting it into NetSurf
- dragging it out of MPro into netSurf
- pasting it into Edit and saving the text file into NetSurf.

I tried both the Open dialogue from the icon bar and the URL field at 
the top of the browser window. Some of the above didn't work at all 
i.e. nothing was entered into the writable icon.

The full link - about 530 characters - was copied and saved into Edit. 
However when it was successfully put into NetSurf it was invariably 
truncated to 255 characters.

> If you're launching the URL from another application, it could well be
> the result of some limit related to Wimp message processing. The maximum
> size of a poll block is 256 bytes, of which 20 bytes are reserved for
> various global fields; thus the maximum length of a string in a Wimp
> message is 256 - 20 = 236 bytes (or 235, if a terminator is required).

That isn't the case because the URL is truncated to 255 bytes exactly.

> This limit will certainly affect the ANT URL protocol (as, to my
> knowledge, nothing sends the indirect form of the message). I can't
> recall off-hand if the Acorn URI protocol bypasses the limit. Most apps
> try the ANT protocol first, however, so it's somewhat of a moot point.

-- 
 _
|_|. _   Richard Porter               http://www.minijem.plus.com/
|\_||_                                mailto:[EMAIL PROTECTED]

Reply via email to