الثلاثاء، 27 مايو 2014

What is a URL?



What is a URL?





URL is an acronym for Uniform Resource Locator. URL is the technical term for what is often called a "web address". It is the address by which computers and documents on the Internet can be located. The URL was invented by Tim Berners-Lee as one of his many contributions to the World Wide Web. The URL is a short text string that contains the name of a computer on the Internet, a protocol for communicating with that computer, a path and filename of a document on that computer, and sometimes additional information as well. The inclusion of all this information in a single string is allows for seamless interaction between computers on the Internet and rapid exchange of information. The URL was designed to be extensible in the sense that as new types of documents are added to the Internet, the URL would be able to adapt and uniquely identify each document with regard to each new document format's needs.
A full URL consists of a service name, followed by a colon and a hostname, optionally followed by a colon and a port number, followed by a path which ends in a filename or directory. An example of a full URL looks like this: "service:hostname.com:80/directory/file.html". Most URLs that are handled by humans are the addresses of documents on the World Wide Web. These URLs usually specify the HTTP protocol and have the port number eliminated. Additionally, the hostname of a WWW address begins with two forward slashes. An example of such a URL looks like this: "http://hostname.com/". Note that in this example the path specified is a single forward slash, and no file name was specified. This tells the webserver that you are requesting the default file in the topmost public directory of the server. If the webserver has no default file configured then it may return either a list of the files in the directory or an error. A common user error is to specify a URL with no path. Although most webservers are configured to handle this error by automatically assuming that the user wants the default document in the topmost directory, this causes unnecessary server load and may lead to the wrong document being served.
a URL logo
Although a URL specifies a specific document's location on the Internet, electronic documents can be easily copied and therefore may have more than one location. Hence, the concepts of URN (Uniform Resource Name) and URI (Uniform Resource Identifier) have been developed. URNs specify the name of a particular resource, regardless of it's location. URIs are simply complete URLs in which the filename is a URN. For example, two webservers may both have a copy of the book 1984. The book may have any filename, but the International Standard Book Number for 1984 will always be "ISBN 0-452-28423-6". Therefore, the URN of the book 1984 would logically be "isbn.0-452-28423-6". A URL of the type "http://server1.com/isbn.0-452-28423-6" would therefore be a URI for the book 1984. Another URI for the same book could possibly be "http://server2.net/books/isbn.0-452-28423-6". Both URIs would ideally point to identical documents. The difference between a URL and a URI is often arbitrary, as most documents on the World Wide Web are not named by any standards organization.


URL هو اختصار ل محدد موقع المعلومات . URL هو المصطلح التقني ل ما وغالبا ما يسمى " عنوان الويب " . هذا هو عنوان الذي اجهزة كمبيوتر ووثائق على شبكة الإنترنت يمكن أن يكون موجودا . اخترع URL تيم بيرنرز لي واحدة من العديد من إسهاماته في الشبكة العالمية . عنوان URL هو سلسلة نصية قصيرة تحتوي على اسم الكمبيوتر على الإنترنت، بروتوكول للتواصل مع هذا الكمبيوتر ، مسار واسم وثيقة على ذلك الكمبيوتر ، و أحيانا معلومات إضافية كذلك. إدراج كل هذه المعلومات في سلسلة واحدة و يسمح للتفاعل السلس بين أجهزة الكمبيوتر على الإنترنت و التبادل السريع للمعلومات . تم تصميم الموقع ليكون الموسعة بمعنى أن كما يتم إضافة أنواع جديدة من وثائق إلى شبكة الإنترنت ، وعنوان الموقع ستكون قادرة على التكيف و تحديد فريد لكل وثيقة فيما يتعلق باحتياجات كل وثيقة شكل الجديد.
يتكون URL الكامل ل اسم الخدمة ، متبوعا بنقطتين و اسم مضيف ، ثم اختياريا بنقطتين و رقم المنفذ ، تليها مسار الذي ينتهي في اسم الملف أو الدليل. مثال على عنوان URL الكامل يبدو مثل هذا: " الخدمة: hostname.com : 80/directory/file.html " . معظم عناوين المواقع التي يتم التعامل معها من قبل البشر هي عناوين المستندات على شبكة ويب العالمية. هذه العناوين عادة تحديد بروتوكول HTTP ويكون رقم المنفذ القضاء عليها. بالإضافة إلى ذلك، اسم المضيف من عنوان WWW يبدأ مع اثنين من خطوط مائلة إلى الأمام. مثال على مثل هذا URL يبدو مثل هذا: " http://hostname.com/ " . لاحظ أنه في هذا المثال على المسار المحدد هو خط مائل واحد، و تم تحديد أي اسم الملف. هذا يحكي خادم الويب التي كنت تطلب الملف الافتراضي في أعلى الدليل العام للخادم. إذا كان خادم الويب لا يوجد لديه ملف تكوين الافتراضي ثم قد يعود إما قائمة من الملفات في الدليل أو خطأ. خطأ المستخدم شيوعا هو لتحديد URL مع أي مسار . على الرغم من أن يتم تكوين معظم مزودات الويب لمعالجة هذا الخطأ عن طريق افتراض تلقائيا أن المستخدم يريد المستند الافتراضي في أعلى الدليل ، وهذا يسبب تحميل الملقم لا لزوم لها و يمكن أن تؤدي إلى وثيقة الخطأ التي تقدم لها الخدمات .
شعار URL
على الرغم من أن URL يحدد موقع مستند معين على شبكة الإنترنت ، والوثائق الإلكترونية يمكن نسخها بسهولة ، وبالتالي قد يكون أكثر من موقع واحد. وبالتالي ، وضعت مفاهيم URN ( اسم المصدر الموحد ) و URI (معرف الموارد الموحد ) . الجرار تحديد اسم مورد معين ، بغض النظر عن موقعه. محددات عناوين المواقع هي ببساطة كاملة في اسم الملف الذي هو URN . على سبيل المثال ، واثنين من مزودات الويب قد تكون لهما نسخة من الكتاب عام 1984. قد يكون الكتاب أي اسم ، ولكن عدد قياسي الدولي للكتاب عام 1984 أن يكون دائما " ISBN 0-452-28423-6 " . وبالتالي ، فإن URN الكتاب 1984 يكون منطقيا " isbn.0 - 452-28423 -6" . A URL من نوع " http://server1.com/isbn.0-452-28423-6 " ولذلك يكون URI للكتاب 1984. URI آخر ل نفس الكتاب يمكن أن يكون ربما " http://server2 . net/books/isbn.0-452-28423-6 " . سيكون كل من محددات تشير إلى وثائق مثالي متطابقة. الفرق بين URL و URI غالبا ما تكون تعسفية ، حيث أن معظم الوثائق على الشبكة العالمية لا يدعى من قبل أي منظمة المعايير.

0 التعليقات:

إرسال تعليق