ラベル http の投稿を表示しています。 すべての投稿を表示
ラベル http の投稿を表示しています。 すべての投稿を表示

2011/07/26

http, put

- reference

-- java
--- http://d.hatena.ne.jp/nacookan/20080108/1199774995

--- http://stackoverflow.com/questions/2099576/java-http-put-with-httpurlconnection

--- http://www.atmarkit.co.jp/bbs/phpBB/viewtopic.php?topic=48794&forum=12

-- java : sounds untrue
http://stackoverflow.com/questions/1051004/how-to-send-put-delete-http-request-in-httpurlconnection-looks-like-not-working

-- java servlet
--- http://mergedoc.sourceforge.jp/tomcat-servletapi-5-ja/javax/servlet/http/HttpServlet.html

-- perl : http://blog.tanarky.com/2010/01/perlhttp-put-method.html

2011/07/25

apache directive

* settings file

- /etc/httpd/conf/httpd.conf

- reference : http://httpd.apache.org/docs/2.0/ja/mod/core.html

* PUT

- in /etc/httpd/conf/httpd.conf

-- affirm
--- LoadModule dav_module modules/mod_dav.so
--- LoadModule dav_fs_module modules/mod_dav_fs.so

-- add DAV On

<Directory "/var/www/html"&rt;
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
DAV On
</Directory &rt;


* OPTIONS

- Request

OPTIONS / HTTP/1.1
User-Agent: Java/1.6.0_26
Host: 192.168.11.10
Connection: keep-alive


- Response


HTTP/1.1 200 OK
Date: Tue, 26 Jul 2011 10:39:10 GMT
Server: Apache/2.2.3 (Red Hat)
DAV: 1,2
DAV:
MS-Author-Via: DAV
Allow: OPTIONS,GET,HEAD,POST,DELETE,TRACE,PROPFIND,PROPPATCH,COPY,MOVE,LOCK,UNLOCK
Content-Length: 0
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Content-Type: httpd/unix-directory

2011/07/18

Apache HTTP Server return : Destination unreachable


* Problem : http server returns

- ICMP : Destination unreachable (Host administratively prohibited)
-- Type : 3 = Destination unreachable
-- Code : 10 = Host administratively prohibited

* Solution
- Here are some firewall.

- CentOS

-- MenuBar > System > Security level and Firewall Settting
--- HTTP




2011/01/20

Java HTTP using HttpClient

* Package
- org.apache.commons.httpclient.HttpClient

* GET
- http://www.syboos.jp/java/doc/jakarta-commons-httpclient.html

* PUT
- http://hc.apache.org/httpclient-3.x/methods/put.html
- http://www.fireproject.jp/feature/uzumi/httpclient/intro.html

* POST
- http://sinsengumi.net/blog/2010/10/java%E3%81%AEhttpclient-4-%E3%82%92%E8%A7%A6%E3%81%A3%E3%81%A6%E3%81%BF%E3%81%9F%E3%80%82/

- reference :
-- http://sinsengumi.net/blog/2010/10/java%E3%81%AEhttpclient-4-%E3%82%92%E8%A7%A6%E3%81%A3%E3%81%A6%E3%81%BF%E3%81%9F%E3%80%82/

--