Midnight Cowboy is a 1969 movie , released by United Artists . John Schlesinger directed it , and Waldo Salt wrote the screenplay based on the James Leo Herlihy novel . Midnight Cowboy is a 1969 American drama film based on the 1965 novel of the same name by James Leo Herlihy .