Re: Fragment identifiers, PHP, and NetSurf

2011-10-28 Thread John Williams
In article <5228d86a93joh...@ukgateway.net>,
   John Williams  wrote:

> I'm flummoxed.

Apparently, after Googling, this is not a NetSurf issue at all, but:

"this is an open (not specified) issue with the current HTTP specification.
it is addressed in 2 issues of the IETF httpbis working group:

#6: Fragments allowed in Location
#43: Fragment combination / precedence during redirects"

See:

  http://stackoverflow.com/questions/2286402/url-fragment-and-302-redirects

Apologies.

John




Re: Fragment identifiers, PHP, and NetSurf

2011-10-27 Thread John Williams
In article <5228d9da6fj...@jaharrison.me.uk>,
   John Harrison  wrote:

> I have noticed that if I drag a URL containing a fragment identifier from
> NetSurf to something else (StrongEd, WebWonder, or whatever) only the
> base URL gets copied across, like this, in the example above

I see what you mean. But the same thing happens if I send the URL with the
fragment identifier to IE8 as a shortcut (via my URLtoIE utility) - the
last bit disappears - so perhaps that is accepted behaviour?

This may not be a NetSurf-specific problem at all.  But flagged-up here,
those who know can decide and tell us.

John




Re: Fragment identifiers, PHP, and NetSurf

2011-10-27 Thread John Harrison
In article <5228d86a93joh...@ukgateway.net>,
   John Williams  wrote:
>  I find that, whilst a URL file containing:

> http://www.bbc.co.uk/radio4/programmes/schedules/fm/#latenight   

> takes me directly to the Late section in NetSurf, the same URL sent from
> PHP as a header('Location: ...) function seems to lose the fragment
> identifier altogether and just loads the base page.

> I am puzzled as to why this only happens with NetSurf.   

This might be completely unconnected, but I have noticed that if I drag a
URL containing a fragment identifier from NetSurf to something else
(StrongEd, WebWonder, or whatever) only the base URL gets copied across,
like this, in the example above:

http://www.bbc.co.uk/radio4/programmes/schedules/fm

Regards

-- 
John Harrison
Website http://jaharrison.me.uk



Fragment identifiers, PHP, and NetSurf

2011-10-27 Thread John Williams

Doing a bit of scripting to compensate for inadequacies in the BBC Radio 4
Schedule page, I find that, whilst a URL file containing:

http://www.bbc.co.uk/radio4/programmes/schedules/fm/#latenight  

takes me directly to the Late section in NetSurf, the same URL sent from
PHP as a header('Location: ...) function seems to lose the fragment
identifier altogether and just loads the base page.

It does, however, work OK when called with IE8 under Windows XP Pro, and
Firefox under Linux.

I am puzzled as to why this only happens with NetSurf. 

I am running the PHP scripting locally using WebJames, but the same thing
happens if I put the script on my web site, except now IE8 ignores the
fragment identifier as well!

I'm flummoxed.

John