in reply to WWW::Mechanize::Link - how to?

WWW::Mechanize::Link is something WWW::Mechanize gives you. I'm not sure if it's intended to be created from the outside. One thing that might or might not trip you up is that maybe your creation of the link does not create the link as a POST form but a GET form, and then ->put gets confused. I can only recommend looking at the things either using a network sniffer or, alternatively, looking at things through the debug callbacks that LWP now offers to see the difference between the two.

Replies are listed 'Best First'.
Re^2: WWW::Mechanize::Link - how to?
by flamey (Scribe) on Feb 16, 2009 at 16:12 UTC
    thanks for reply, Corion.

    This is from WWW::Mechanize documentation for both put() and get(): $uri can be a well-formed URI string, a URI object, or a WWW::Mechanize::Link object.

    I thought this means I can create this object and pass it in, no?

      In theory maybe you can create one, but I'm not sure that what you create also is what the receiving website expects. Hence you need to compare the two, because we cannot do that for you.

        ok, thank you