http sample code move to HTTPProgramming Controller