You can set cookie values if you use a CookieJar with the request, though. It wouldn't be an automated solution, and would break if the client code changes, though.
-- A.J. Brown Zend Certified PHP Engineer http://ajbrown.org/blog Giuliano Riccio wrote: > > Probably it's not possible since Zend_Http doesn't execute the javascript > content of the page. > > Giuliano > > Junior Gillespie-2 wrote: >> >> Hello, I've recently ran into a problem that's I'm unable to find a >> work around for. >> >> Using Zend_HTTP, I'm accessing a site and posting authentication >> credentials. Upon success, remote page redirects to a confirm page >> with an "Ok" button. This button utilizes the onClick event to expire >> a cookie in order to confirm, it then redirects. >> >> The onclick event looks like this: >> >> <input name="success" value="Ok" onclick="redir();" type="button"> </td> >> >> Javascript: >> >> function redir() >> { >> // Deletes the cookie by expiring >> setCookie("link","", new Date("January 1, 1970"), "/" ); >> if ("" != "") { >> window.location=""; >> } >> } >> >> How would I code for this type of mechanism, in order to issue the >> onClick event in order to get a redirect to the contents I need? >> >> -- >> Thanks, >> >> Junior >> >> > > ----- Regards, A.J. Brown Zend Certified PHP Engineer http://ajbrown.me -- View this message in context: http://www.nabble.com/Interact-with-zend_http-request-tp21072511p21074734.html Sent from the Zend Framework mailing list archive at Nabble.com.
