Wirelessly posted (Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_0_1 like Mac OS X; en-us) AppleWebKit/532.9 (KHTML, like Gecko) Version/4.0.5 Mobile/8A306 Safari/6531.22.7)
Keep in mind you have to be able to contact Apple's server to verify the firmware before you can restore, so you'll still need Internet to restore even if you have the ipsw downloaded.