No, you are not allowed to get the military discount online. To fetch these discounts, you have to give a call on the airline’s phone number.