ํ‹ฐ์Šคํ† ๋ฆฌ ๋ทฐ

728x90
SMALL

์„œ๋ฒ„์ƒ์—์„œ ์ˆ˜์ •๋˜์–ด์•ผ ํ•˜๋Š” ์ž‘์—…

PUT, DELETE, ๋“ฑ.... HTTP METHOD ๋ฅผ ์ด์šฉํ•˜์—ฌ ์•…์„ฑํŒŒ์ผ (์›น์‰˜) ์—…๋กœ๋“œ๊ฐ€ ๊ฐ€๋Šฅํ•˜๋‹ค๋Š” ์ทจ์•ฝ์ ์ด ์žˆ์—ˆ๋‹ค ...


HTTP - METHOD 

HTTP ๋ฉ”์†Œ๋“œ  POST, GET, .... ๋“ฑ๋“ฑ ์—ฌ๋Ÿฌ๊ฐ€์ง€๊ฐ€ ์žˆ๋‹ค๋Š”๊ฑธ ์ด์ œ ์•Œ์•˜๋„ค ^^ ;;


GET, POST ๋นผ๊ณ  ๋‚˜๋จธ์ง€ ๊ฒƒ๋“ค์€ ๋‹ค ๋ง‰๋Š” ๋ฐฉ๋ฒ•์€ ?

WEB.XML ํ•˜๋‹จ์— ์•„๋ž˜์˜ ๊ตฌ๋ฌธ์„ ์ถ”๊ฐ€ํ•ด ์ค€๋‹ค. 


<security-constraint>
    <web-resource-collection>
        <web-resource-name>Forbidden</web-resource-name>
        <url-pattern>/*</url-pattern>
        <http-method>PUT</http-method>
        <http-method>DELETE</http-method>
        <http-method>HEAD</http-method>
        <http-method>TRACE</http-method>
        <http-method>OPTIONS</http-method>
    </web-resource-collection>
    <auth-constraint />
</security-constraint>


PUT, DELETE, HEAD, TRACE, OPTIONS ์ด๋Ÿฐ ... HTTP ๋ฉ”์†Œ๋“œ ๋“ค์„ ๋ง‰์•„์ค€๋‹ค.

ํ™•์ธ์€ ... curl -I -X DELETE localhost

ํ•ด๋ณด๋ฉด ... HTTP/1.1 403 


์ด ๋‚˜์˜ค๊ฒŒ ๋œ๋‹ค ... 

728x90
LIST
๋Œ“๊ธ€
๊ณต์ง€์‚ฌํ•ญ
์ตœ๊ทผ์— ์˜ฌ๋ผ์˜จ ๊ธ€
์ตœ๊ทผ์— ๋‹ฌ๋ฆฐ ๋Œ“๊ธ€
Total
Today
Yesterday
๋งํฌ
ยซ   2025/06   ยป
์ผ ์›” ํ™” ์ˆ˜ ๋ชฉ ๊ธˆ ํ† 
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30
๊ธ€ ๋ณด๊ด€ํ•จ
250x250