SlideShare a Scribd company logo
1 of 2
Download to read offline
Copy Method In HTTP/1.1
‫اردبیل‬ ‫آزاد‬ ُ‫داًشگا‬ ‫افسار‬ ‫سخت‬ ‫کارشٌاسی‬ ‫افراز‬ ‫ًیوا‬860080868
‫هٌبع‬ ‫از‬ ‫رًٍَشت‬ ‫یک‬ ‫ایجاد‬ ‫برای‬ ‫هتذ‬ ‫ایي‬ ‫از‬‫تَسط‬ ِ‫ک‬ ‫ای‬ )‫(فایل‬Uniform Resource Identifier (URI)ُ‫استفاد‬ ‫شَد‬ ‫هی‬ ‫هشخص‬
‫شَد‬ ‫هی‬.
ٌِ‫داه‬ ‫ّواى‬ ‫تحت‬ ِ‫ک‬ ‫دیگری‬ ‫دایرکتَری‬ ‫در‬ ‫تَاًذ‬ ‫هی‬ ‫رًٍَشت‬ ‫ایي‬.‫گردد‬ ُ‫رخیر‬ ‫باشذ‬
: ‫هثال‬
‫دارین‬ ‫سعی‬ ‫زیر‬ ‫هثال‬ ‫در‬‫از‬ ‫رًٍَشتی‬‫فایل‬“index.html”ِ‫پَش‬ ‫در‬ ‫هَجَد‬) ‫دایرکتَری‬ (“username”‫دایرکتَری‬ ‫در‬ ‫را‬"folder"
‫کنیم‬ ‫ایجاد‬.‫پاراهتر‬“Host”‫پاراهتر‬ ٍ ‫ًظر‬ ‫هَرد‬ ٌِ‫داه‬ ‫ًوایاًگر‬“Destination”.‫باشذ‬ ‫هی‬ ‫رًٍَشت‬ ‫هقصذ‬ ُ‫دٌّذ‬ ‫ًشاى‬
Request
Response
.‫باشذ‬ ‫هی‬ ‫آهیس‬ ‫هَفقیت‬ ‫بصَرت‬ ‫عولیات‬ ‫اًجام‬ ‫ًشاًگر‬ ‫زیر‬ ‫پاسخ‬ ‫دریافت‬
‫دریافت‬ ِ‫ک‬ ‫صَرتی‬ ‫در‬‫زیر‬ ‫پاسخ‬‫عذم‬‫هجَز‬ِ‫ب‬ ‫دسترسی‬.‫کٌذ‬ ‫هی‬ ‫هشخص‬ ‫را‬ ‫هقصذ‬ ‫دایرکتَری‬
Copy
HTTP/1.1 201 Created
Copy
COPY /~nima/index.html HTTP/1.1
Host: www.afraz.mp
Destination: http://www.afraz.mp/~nima/folder/index.html
Overwrite: T
Copy
HTTP/1.1 423 Locked
Copy Method In HTTP/1.1
‫اردبیل‬ ‫آزاد‬ ُ‫داًشگا‬ ‫افسار‬ ‫سخت‬ ‫کارشٌاسی‬ ‫افراز‬ ‫ًیوا‬860080868
‫جذٍل‬‫زیر‬‫کذّای‬‫ٍضعیتی‬ِ‫ک‬‫هوکي‬‫است‬‫در‬‫پاسخ‬‫ّا‬‫با‬‫آى‬ِ‫هَاج‬‫شَیذ‬‫را‬‫ًشاى‬‫هی‬‫دّذ‬.
Status Codes
Status Code Meaning
201 (Created) The resource was successfully copied.
204 (No Content) The source resource was successfully copied to a pre-existing
destination resource.
403 (Forbidden) The source URI and the destination URI are the same.
409 (Conflict) A resource cannot be created at the destination URI until one or more
intermediate collections are created.
412 (Precondition
Failed)
Either the Overwrite header is "F" and the state of the destination resource is not
null, or the method was used in a Depth: 0 transaction.
423 (Locked) The destination resource is locked.
502 (Bad Gateway) The COPY destination is located on a different server, which refuses to accept
the resource.
507 (Insufficient
Storage)
The destination resource does not have sufficient storage space.
References :

More Related Content

More from Nima Afraz

On chip photonic-nima afraz
On chip photonic-nima afrazOn chip photonic-nima afraz
On chip photonic-nima afrazNima Afraz
 
Dvfs nima-afraz
Dvfs nima-afrazDvfs nima-afraz
Dvfs nima-afrazNima Afraz
 
Contamination delay
Contamination delayContamination delay
Contamination delayNima Afraz
 
Cloud nima afraz
Cloud nima afrazCloud nima afraz
Cloud nima afrazNima Afraz
 

More from Nima Afraz (6)

Pipelining
PipeliningPipelining
Pipelining
 
On chip photonic-nima afraz
On chip photonic-nima afrazOn chip photonic-nima afraz
On chip photonic-nima afraz
 
Dvfs nima-afraz
Dvfs nima-afrazDvfs nima-afraz
Dvfs nima-afraz
 
Contamination delay
Contamination delayContamination delay
Contamination delay
 
Cloud nima afraz
Cloud nima afrazCloud nima afraz
Cloud nima afraz
 
Bfs
BfsBfs
Bfs
 

Copy method

  • 1. Copy Method In HTTP/1.1 ‫اردبیل‬ ‫آزاد‬ ُ‫داًشگا‬ ‫افسار‬ ‫سخت‬ ‫کارشٌاسی‬ ‫افراز‬ ‫ًیوا‬860080868 ‫هٌبع‬ ‫از‬ ‫رًٍَشت‬ ‫یک‬ ‫ایجاد‬ ‫برای‬ ‫هتذ‬ ‫ایي‬ ‫از‬‫تَسط‬ ِ‫ک‬ ‫ای‬ )‫(فایل‬Uniform Resource Identifier (URI)ُ‫استفاد‬ ‫شَد‬ ‫هی‬ ‫هشخص‬ ‫شَد‬ ‫هی‬. ٌِ‫داه‬ ‫ّواى‬ ‫تحت‬ ِ‫ک‬ ‫دیگری‬ ‫دایرکتَری‬ ‫در‬ ‫تَاًذ‬ ‫هی‬ ‫رًٍَشت‬ ‫ایي‬.‫گردد‬ ُ‫رخیر‬ ‫باشذ‬ : ‫هثال‬ ‫دارین‬ ‫سعی‬ ‫زیر‬ ‫هثال‬ ‫در‬‫از‬ ‫رًٍَشتی‬‫فایل‬“index.html”ِ‫پَش‬ ‫در‬ ‫هَجَد‬) ‫دایرکتَری‬ (“username”‫دایرکتَری‬ ‫در‬ ‫را‬"folder" ‫کنیم‬ ‫ایجاد‬.‫پاراهتر‬“Host”‫پاراهتر‬ ٍ ‫ًظر‬ ‫هَرد‬ ٌِ‫داه‬ ‫ًوایاًگر‬“Destination”.‫باشذ‬ ‫هی‬ ‫رًٍَشت‬ ‫هقصذ‬ ُ‫دٌّذ‬ ‫ًشاى‬ Request Response .‫باشذ‬ ‫هی‬ ‫آهیس‬ ‫هَفقیت‬ ‫بصَرت‬ ‫عولیات‬ ‫اًجام‬ ‫ًشاًگر‬ ‫زیر‬ ‫پاسخ‬ ‫دریافت‬ ‫دریافت‬ ِ‫ک‬ ‫صَرتی‬ ‫در‬‫زیر‬ ‫پاسخ‬‫عذم‬‫هجَز‬ِ‫ب‬ ‫دسترسی‬.‫کٌذ‬ ‫هی‬ ‫هشخص‬ ‫را‬ ‫هقصذ‬ ‫دایرکتَری‬ Copy HTTP/1.1 201 Created Copy COPY /~nima/index.html HTTP/1.1 Host: www.afraz.mp Destination: http://www.afraz.mp/~nima/folder/index.html Overwrite: T Copy HTTP/1.1 423 Locked
  • 2. Copy Method In HTTP/1.1 ‫اردبیل‬ ‫آزاد‬ ُ‫داًشگا‬ ‫افسار‬ ‫سخت‬ ‫کارشٌاسی‬ ‫افراز‬ ‫ًیوا‬860080868 ‫جذٍل‬‫زیر‬‫کذّای‬‫ٍضعیتی‬ِ‫ک‬‫هوکي‬‫است‬‫در‬‫پاسخ‬‫ّا‬‫با‬‫آى‬ِ‫هَاج‬‫شَیذ‬‫را‬‫ًشاى‬‫هی‬‫دّذ‬. Status Codes Status Code Meaning 201 (Created) The resource was successfully copied. 204 (No Content) The source resource was successfully copied to a pre-existing destination resource. 403 (Forbidden) The source URI and the destination URI are the same. 409 (Conflict) A resource cannot be created at the destination URI until one or more intermediate collections are created. 412 (Precondition Failed) Either the Overwrite header is "F" and the state of the destination resource is not null, or the method was used in a Depth: 0 transaction. 423 (Locked) The destination resource is locked. 502 (Bad Gateway) The COPY destination is located on a different server, which refuses to accept the resource. 507 (Insufficient Storage) The destination resource does not have sufficient storage space. References :