Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HEAD, PUT, DELETE HTTP methods

 
Sharmila Punde
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Andriy Pererva
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also you can use Apache HTTP Client library to programmatically generate different types of requests to your web-server
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic