ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzaie_5.4.0.1/rzaieconput.htm

88 lines
5.9 KiB
HTML
Raw Permalink Normal View History

2024-04-02 14:02:31 +00:00
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-us" xml:lang="en-us">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="security" content="public" />
<meta name="Robots" content="index,follow" />
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
<meta name="DC.Type" content="concept" />
<meta name="DC.Title" content="Web Publishing with the PUT Method" />
<meta name="abstract" content="This topic provides information on Web publishing with the PUT method." />
<meta name="description" content="This topic provides information on Web publishing with the PUT method." />
<meta name="DC.Relation" scheme="URI" content="rzaieconcepts.htm" />
<meta name="copyright" content="(C) Copyright IBM Corporation 2002,2006" />
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 2002,2006" />
<meta name="DC.Format" content="XHTML" />
<meta name="DC.Identifier" content="rzaieconput" />
<meta name="DC.Language" content="en-us" />
<!-- All rights reserved. Licensed Materials Property of IBM -->
<!-- US Government Users Restricted Rights -->
<!-- Use, duplication or disclosure restricted by -->
<!-- GSA ADP Schedule Contract with IBM Corp. -->
<link rel="stylesheet" type="text/css" href="./ibmdita.css" />
<link rel="stylesheet" type="text/css" href="./ic.css" />
<title>Web Publishing with the PUT Method</title>
</head>
<body id="rzaieconput"><a name="rzaieconput"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Web Publishing with the PUT Method</h1>
<div><p>This topic provides information on Web publishing with the PUT
method.</p>
<div class="important"><span class="importanttitle">Important:</span> Information
for this topic supports the latest PTF levels for HTTP Server for i5/OS .
It is recommended that you install the latest PTFs to upgrade to the latest
level of the HTTP Server for i5/OS. Some of the topics documented here are
not available prior to this update. See <a href="http://www-03.ibm.com/servers/eserver/iseries/software/http/services/service.html" target="_blank">http://www.ibm.com/servers/eserver/iseries/software/http/services/service.htm</a> <img src="www.gif" alt="Link outside Information Center" /> for more information. </div>
<p>The standard way of uploading files to a Web server using HTTP is through
the use of the PUT method. HTTP Server (powered by Apache) supports the PUT
method, but requires additional setup to tell the server how to handle incoming
PUT requests. One way to accomplish this is to enable WebDAV, which is provided
with HTTP Server (powered by Apache) through the module mod_dav. Another is
to provide your own CGI program and configure it for use with HTTP Server
(powered by Apache). This article discusses both options, as well as the PUT
method in general.</p>
<p><strong>About the PUT Method</strong></p>
<p>POST and PUT are two methods in the HTTP specification that are used to
permanently change files on a Web server. While the POST method is used in
conjunction with preestablished content such as Web forms, the PUT method
involves manipulating files that do not yet exist on the server. HTTP Server
(powered by Apache) supports the POST and PUT methods in the same way -- that
is, it requires a program to tell it how to handle incoming requests.</p>
<p><strong>WebDAV</strong></p>
<p>Most users will find that the easiest way to implement the PUT method for
HTTP Server (powered by Apache) is to enable WebDAV and use a client program
that supports WebDAV (such as Microsoft Web Folders) to upload files. WebDAV
is a set of extensions to the HTTP protocol, and is included in HTTP Server
(powered by Apache) through the module mod_dav. In addition to the WebDAV
extensions, mod_dav includes a PUT handler. </p>
<p>For more information on WebDAV, including a list of all the methods included,
see <a href="rzaiewebdav.htm">WebDAV for HTTP Server (powered by Apache)</a> and <a href="rzaieconfigwebdav.htm">Set up WebDAV for HTTP Server (powered by Apache)</a>.</p>
<p><strong>CGI programs</strong></p>
<p>Alternatively, you can provide your own CGI program to handle incoming
PUT requests, and configure it for use with HTTP Server (powered by Apache).
A program that handles PUT requests operates much like a program that handles
POST requests, but must include additional code for writing (and overwriting)
files on the server.</p>
<p>Because a PUT action results in a permanent change on the server, it's
important to be aware of the security issues involved in providing your own
PUT-handling CGI program. Some of these issues include:</p>
<ul><li>Ensuring the user making the PUT request is authorized to update files
on the server</li>
<li>Making sure only Web content files are updated</li>
<li>Only updating content the user is authorized to update</li>
</ul>
<p>For a more detailed discussion on providing your own PUT-handling CGI program,
see the Apache Week article <a href="http:\\www.apacheweek.com\features\put" target="_blank">Publishing Pages with PUT</a> <img src="www.gif" alt="Link outside Information Center" />.</p>
<p>Once you have a program capable of handling PUT requests, you can configure
it for use with HTTP Server (powered by Apache) using the Script directive.
For more information on the Script directive, see <a href="rzaiemod_actions.htm">Module mod_actions</a>.</p>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rzaieconcepts.htm" title="This topic provides concepts of functions on HTTP Server and IBM Web Administration for i5/OS interface.">Concepts of functions of HTTP Server</a></div>
</div>
</div>
</body>
</html>