|
When looking at a SSI printenv dump I see a variable URI_REQUEST.
When reading the Apache mod_include docs I see DOCUMENT_URI which they define as "The (%-decoded) URL path of the document requested by the user."
Anyone know the difference between the...
Started by Rob Wells on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
DOCUMENT_URI....
REQUEST_URI does not contain the query string.
Seems like it is exactly the opposite according to Apache docs and RFC 2616 .
REQUEST_URI includes the Query String (?q=testing...) where DOCUMENT_URI does not.
|
|
Hi, I'm trying to implement a sitemesh decorator in my site. The example on their site has a full URI linking to their site for the taglib part of the decorator file:
<%@ taglib uri="http://www.opensymphony.com/sitemesh/decorator" prefix="decorator...
Started by Chris on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
The URI is a Universal Resource Identifier, it is NOT a locator ....
See Java EE tutorial for more details.
The URI declared in taglib will be resolved locally as long as it matches the URI container implements).
No, it does not.
|
|
I've written a web application using Catalyst that has a lot of forms and needs to run over https. There are no hard-coded URLs, everything uses $c->uri_for or $c->req->uri . Everything worked great in the development environment using the dev...
Started by mhchaudhry on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
It shows an example of setting the scheme....
Further searching turned up HTTPS Tricks on the Catalyst Wiki .
I read the the uri object's scheme method.
I don't use Catalyst, but the docs for uri_for point to the request object's base method .
|
Ask your Facebook Friends
|
It's been explained to me numerous times that all URLs are URIs but not all URIs are URLs. Can anyone give an example of something that is a URI but is not a URL?
Started by Josh Gibson on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
For example, the URN urn:isbn:0-395-36341-1 is a URI
From: Wikipedia: http://en.wikipedia.org/wiki www.pierobon.org/iis/review1.htm#one....
A Uniform Resource Name (URN) is a URI that identifies a resource by name in a particular namespace it.
|
|
Hi,
The following line of code gives an exception. Is this a bug in the framework? If not what approach could I take instead?
It seems to be the ":" (colon) that causes in the issue, however I do see such a URI working on production websites ok (i.e. ...
Started by Greg on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
The newer RFC3968 agrees:
pchar = unreserved / pct-encoded / sub-delims be an absolute URI and not a valid relative URI:
path-noscheme = segment-nz-nc *( "/" segment ) segment-nz-nc it automatically by encoding the....
Is a valid URI.
|
|
I'm iterating through a list of links on a page, creating a URI object for each. When the URI object is created, I don't know whether the URL has a scheme, so when I later call $uri->host() , I will sometimes get
Can't locate object method "host" via...
Started by Drew Stephens on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
You could also check it's type:
if ($uri->isa('URI::_generic')) { die 'A generic type - not good.
Of a regex, you can do
if ($uri->can('host')) { say "We're good!"; }
to see if it's available.
|
|
I'm toying around with a little web app which lets people create queues of URIs (eg, "stuff to read for work", "programming languages to learn", etc), and I'm trying to decide on a URL scheme.
One of the ideas I'm toying with is using a URI like /queue...
Started by David Wolever on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Your Uri format "/queue/$user_name/$queue_name" would then correspond.
Relation with a user.
|
|
I have a class I've marked as Serializable, with a Uri property. How can I get the Uri to serialize/Deserialize without making the property of type string?
Started by Jeremy on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Http for serialization:
[XmlIgnore] public Uri....
Uri is already Serializeable, so I don't belive you have to do anything.
Uri class implements ISerializable Interface so it should be able to take care of serialization/deserialization.
|
|
I have a problem with the .NET's Uri implementation. It seems that if the scheme is "ftp", the query part is not parsed as a Query, but as a part of the path instead.
Take the following code for example:
Uri testuri = new Uri("ftp://user:pass@localhost...
Started by Johnny Egeland on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
You should use = (FtpWebRequest)FtpWebRequest.Create(new Uri....
You should search in thoses classes for a Uri parser I think.
You have to use a specific class for FTP protocol like FtpWebRequest that has a Uri property like RequestUri.
|
|
What would be the correct way to create a fully URL-encoded file:// URI from a local path, i.e. where all special characters such as blanks etc are escaped?
Given the following input
C:\Data\Input Document.txt
I would like to get
file:///C:/Data/Input...
Started by divo on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Tried:
new Uri(str).AbsoluteUri
Not sure I understand your requirement for relative URIs....
|