The modification to the EthernetClient.cpp (for the UNO and Mega with the Ethernet shield ) was found on the Arduino Forum and it is quite used by the community as it is mentioned there.
I would like to have similar functionality on my Galileo/Edison implementations.