Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: POST in WWW::Mechanize::PhantomJS

by Corion (Patriarch)
on Jul 20, 2014 at 06:41 UTC ( [id://1094355]=note: print w/replies, xml ) Need Help??


in reply to POST in WWW::Mechanize::PhantomJS

WWW::Mechanize::PhantomJS does not currently support POST requests via ->post, because Selenium does not support POST requests unless they are triggered by a form in the current HTML page.

Replies are listed 'Best First'.
Re^2: POST in WWW::Mechanize::PhantomJS
by Anonymous Monk on Jul 20, 2014 at 07:51 UTC
    So, update the dom with a new form from ->post, then submit said form? It should work :D (I'm guessing naturally)

      This is the approach I plan to take eventually. The code is already there, but I still have to trick Selenium into actually returning the results.

      Selenium is not really intended for browser automation. It is more intended for simulating user intaction and so it provides very little programmatic interfaces to query the result state of a request.

Re^2: POST in WWW::Mechanize::PhantomJS
by pghilb (Novice) on Jul 20, 2014 at 12:35 UTC
    Well... Thanks!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (2)
As of 2024-04-26 02:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found