How to unlock an iphone 5 that's still under a contract?

I'm going out of country in 2 days and I need to unlock my iphone. However their site says your phone must have fulfilled the contract. I've also heard people who are able to unlock their phones even under contract. So I'm planning on calling AT&T tomorrow.
How is it that some people can unlock their phone under contract?

I'm under a 2 year contract, but have had this iphone for over a year and a half.

There are 2 kinds of unlocking. They will not charge you to unlock the phone for regional use, but they charge you if you want to use the device on another US carrier. Like if you have ATT and you want to switch to T-Mobile.

  • My iphone 4s is still under contract can it be unlocked and used anywhere? I don't know the network it is locked to. Its is expected to expiry December 2013.Is there a way it can be unlocked and used anywhere in the world before that date of expiry. Please can i know the network it was locked to. imei: 013004002373006.
  • Is my tmobile contract still continue after they went to no contract? As you may know Mobile went to no contracts not to long ago and is about to offer the iphone. I want to know will they still honor my contract or will I have to cancel and pay the cancilation fee
  • How to unlock Iphone 4s thats still under contract? I have an Iphone 4s and I called AT&T to request the unlock code but they would not give it to me because my phone is still under contract. I will be traveling abroad and I want to use the local SIM card in my Iphone, so is there any way I can legally unlock the phone without voiding the warranty?
  • How to resell an iPhone 5s that is new and still under contract? Just received a new iPhone 5s from AT&T from the mail. Under contract, so it is locked. I see plenty of auctions on eBay selling this, so I believe this is doable, but I'm not sure how exactly. I've read about first activating the phone, then removing the sim card that it came with it, then reselling it. Can someone confirm that? Or please provide me a list of things to do? And a list of things to keep in mind?