QuestionQ29Verified/Network ProgrammingCopy linkReport a problemAsk AstroTutorSave questionSelect the true statements regarding this invocation: r = requests.get('http://localhost:3000') Choose twoAIt addresses a service deployed at localhost (the host where the code is run).BIt addresses a service whose timeout is set to 3000 ms.CIt addresses a service located at the following address: local host.com.DIt addresses a service listening at port 3000.Show AnswerAnswerExplanationIn an HTTP URL, localhost refers to the local host and the number following the colon specifies the destination port. Requests timeouts are configured with the separate timeout argument, not by the URL port.Learn moreRequests QuickstartRequests Developer InterfaceShow comments0Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion