Updated apache url handling
Updated request query method