Improving ProcessUrlRequest implementing an easier approach

I made some changes to the ProcessUrlRequest Class. Please review.