First it would a appear that there is no need to update the url for just getting rates from the USPS and it is not just a matter of changing one url. You only need to update if you are sending actual customer info for labels, or payment to the USPS.
Second, UPS has a different set of rules and they will let you know -- I suppose if you have a online account with them -- if you need to update your code.