Fixed a program-breaking bug

Fixed a broken "while" statement in the HTTPS connection method. Fixed
now, and Twitter search support is now working.