These results suggest that Imd but not Toll signaling activity regulates food consumption in D. melanogaster larvae during parasitic nematode infection, which is expressed as initial reduction during the early stages of infection followed by increase in feeding rate when the infection has progressed. This evidence concerns the gene TLR4 and infection.