aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes HEAD, PUT, DELETE HTTP methods Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "HEAD, PUT, DELETE HTTP methods" Watch "HEAD, PUT, DELETE HTTP methods" New topic
Author

HEAD, PUT, DELETE HTTP methods

Sharmila Punde
Ranch Hand

Joined: Dec 26, 2007
Posts: 133
Dear All,
Just want to see how these methods actually works? So how we can send HEAD, PUT, DELETE, TRACE request to the web server? We can send GET and POST using browser. Can we use browser to send these request to the web server?

Thanks


Regards, Sharmila.
We will have a future if we save Nature!
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41574
    
  54
No, HTML forms only support GET and POST. But you can use JavaScript's XMLHttpRequest object to send the other types as well: http://developer.apple.com/internet/webcontent/xmlhttpreq.html


Ping & DNS - my free Android networking tools app
Andriy Pererva
Ranch Hand

Joined: Jul 19, 2009
Posts: 73
Also you can use Apache HTTP Client library to programmatically generate different types of requests to your web-server


SCJP 6.0(95%), SCWCD 5(94%), SCJD (working on B&S v.2.3.1)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: HEAD, PUT, DELETE HTTP methods