cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Re: curl + javascript

From: Colleen R. Dick <platypus_at_proaxis.com>
Date: Thu, 05 Jun 2008 13:36:04 -0700

Look at the form in the page and see what its action is. It's gnarly
figuring out javascripts like this. What happens if you disable
javascript. Does the site even work at all.

ryan pal wrote:
> what if the function is like this:
>
> function __doPostBack(eventTarget, eventArgument) {
> var theform;
> if (window.navigator.appName.toLowerCase().indexOf("microsoft") > -1) {
> theform = document.Form1;
> }
> else {
> theform = document.forms["Form1"];
> }
> theform.__EVENTTARGET.value = eventTarget.split("$").join(":");
> theform.__EVENTARGUMENT.value = eventArgument;
> theform.submit();
> }
>
> i don't see how to obtain any values so i can post to the form.
>
> ryan
>
> ----- Original Message -----
> From: "Colleen R. Dick"
> To: "curl with PHP"
> Subject: Re: curl + javascript
> Date: Wed, 04 Jun 2008 14:05:15 -0700
>
>
> No. you have to figure out what the javascript does and do it all
> manually as far as I know. You don't really care about the size
> of the window or any of that eye candy, all you really care about
> is the url of the window that it actually opens. So you figure
> all that out and then just do a normal curl on it. ryan pal wrote:
> > good afternoon everyone.
> >
> > does curl have support for javascript? i have a page where the
> > link is as follows: javascript:
> > OpenPropertyWindow(screen.availWidth,screen.availHeight);
> >
> > is there anyway i can tell curl to navigate to a page which is
> > called like that or similar?
> >
> > thanks,
> > ryan
> >
> > -- * Mail.com Autos * - Powered by
> > Oncars.com: Drive By Today!
> >
> ------------------------------------------------------------------------
> >
> > _______________________________________________
> > http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
> >
>
> _______________________________________________
> http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
>
>
> --
> See Exclusive Videos: * 10th Annual Young Hollywood Awards*
> <http://link.brightcove.com/services/player/bcpid1403465002?bclid=1527697154&bctid=1531204364>
> ------------------------------------------------------------------------
>
> _______________________________________________
> http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
>

_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php

Received on 2008-06-05