ASIHTTPRequest shouldn't require UIKit. You should be able to remove that if it's there. You can't import UIKit into a Mac app anyway.
The ASI framework has been discontinued, though. You may want to look at other options such as MKNetworkKit and AFNetworking. Both should work fine in a commandline app.
EDIT: Don't forget that most frameworks like this will require a run loop. The typical way to manage that in a commandline app looks like this (from NSRunLoop docs):
BOOL shouldKeepRunning = YES; // global
NSRunLoop *theRL = [NSRunLoop currentRunLoop];
while (shouldKeepRunning && [theRL runMode:NSDefaultRunLoopMode beforeDate:[NSDate distantFuture]]);
This is an infinite loop until something sets shouldKeepRunning.
You can also use NSApplication as shown in Run NSRunLoop in a Cocoa command-line program.