Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Fixing a problem in deep object hierarchy (slurp in a library)

by ikegami (Patriarch)
on Mar 01, 2006 at 22:09 UTC ( [id://533768]=note: print w/replies, xml ) Need Help??


in reply to Fixing a problem in deep object hierarchy (slurp in a library)

HTTP::Request::Common supports POSTing files without loading them into memory by passing a callback to the content method of the request. The same could be done for a PUT request. I don't see where passing a callback to content is documented, but it is required for documented features. Look at the code in HTTP::Request::Common that wouldn't get executed if $DYNAMIC_FILE_UPLOAD was false.

The catch is that HTTP::DAV relies on content being a string in numerous places, as far as I can tell. If so, fixing it to use a callback for content would entail a lot of work.

Replies are listed 'Best First'.
Re^2: Fixing a problem in deep object hierarchy (slurp in a library)
by Eyck (Priest) on Mar 02, 2006 at 08:17 UTC

    Still, that would be the way to go, thanks for the info about HTTP::Request:Common.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (7)
As of 2024-04-19 13:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found