Enable disable URL param programmatically

i would like to know if is possible enable or disable the URL param request programmatically …
also the header attribute …