In this study we have explored the contribution of the two Toll and Imd immune signaling pathways to regulating the survival ability, feeding rate, levels of sugar metabolites, and insulin signaling activity in D. melanogaster larvae upon infection with the parasitic nematode H. gerrardi. Here, TLR4 is linked to infection.