Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

(wil) Re: Looking for an FAQ... on sockets, http, and other fun stuff

by wil (Priest)
on May 18, 2002 at 17:27 UTC ( [id://167534]=note: print w/replies, xml ) Need Help??


in reply to Looking for an FAQ... on sockets, http, and other fun stuff

If I was you I'd look into the module LWP::Simple. This should be more than capable of doing what you're trying to do.

You will need to specifically look into the built-in is_error(); function which if true means that LWP::Simple was not able to retrieve your document or image. You can then call your sub to warn the user of his or her's error.

I wouldn't really recommend doing this in a busy forum environment, though, as it is likely to be a slightly slow process and I would also consider making this optional for the user, as I know I would prefer to double-check by hand (if I was unsure) than having to wait that exrta second every time I post a message. Just my opinion...

Hope this helps.

- wil
  • Comment on (wil) Re: Looking for an FAQ... on sockets, http, and other fun stuff

Replies are listed 'Best First'.
Re: (wil) Re: Looking for an FAQ... on sockets, http, and other fun stuff
by dakedesu (Scribe) on May 18, 2002 at 20:54 UTC

    Well, atleast for their first little use, there will not really be that much traffic to the site, to make the extra time for this really that big of deal. I can add the option to disable this.

    As for double checking the links, not everybody does that.

    Thanks for the module. Thanks for not charing me until nothing remains nor sending me to karma hell.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://167534]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2024-04-26 00:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found