10.07.2015 Views

Beginning Web Development With Perl : From Novice to ... - Nabo

Beginning Web Development With Perl : From Novice to ... - Nabo

Beginning Web Development With Perl : From Novice to ... - Nabo

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

CHAPTER 5 ■ LWP MODULES 105Obviously, the same rules that apply <strong>to</strong> other <strong>Perl</strong> programming apply when you’re usingthe LWP. Don’t run as root unless absolutely necessary, be mindful of what you’re doing so youdon’t overwrite files, and so on.If you’re allowing uploads through web forms, pay special attention <strong>to</strong> where those filesare uploaded <strong>to</strong> and what the user can do with those files once uploaded. Numerous attackshave begun through a file-upload interface.SummaryThis chapter looked at some forms of interaction between a <strong>Perl</strong> program and the Internetusing the LWP modules. You saw how <strong>to</strong> set up a <strong>Perl</strong>-based browser, along with attributessuch as the user agent. You retrieved web pages and also learned about the GET and POSTmethods.More Internet interaction through <strong>Perl</strong> is on the way in the next chapter. Where this chapterfocused primarily on the LWP and web interaction, the next chapter will expand in<strong>to</strong> otherpro<strong>to</strong>cols, such as POP3, SMTP, and others.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!