This invention controls a printer to download using either a nonsecure
protocol or a secure protocol depending on as to whether or not the
printer is included in a network segment to which an information
processing apparatus generating print control information belongs. When,
on an application executed by the apparatus, a desired data file stored
in a server on the network is designated as an object to be printed, the
apparatus acquires a printer port activated by a printer driver. The
apparatus determines whether or not a destination IP address set to the
printer port is included in the network segment inside an office. If the
IP address is included in the network segment, HTTP is set as a protocol
associated with file acquisition which is to be described in a job
ticket. If not, HTTPS is set as a protocol associated with file
acquisition.