Im trying to implement the trace and head HTTP methods with much trouble!!!

What is the perl code for enabling the above methods in a simple web client?