what you are trying to do is a "forced layover" a.k.a. "free stopover"
I think this link might help:
http://www.flyertalk.com/forum/Forum95/HTML/001041.html
it is "legal" but you need to be creative in booking it...
[This message has been edited by EWR-COflyer (edited 01-18-2002).]