curl-and-php
Re: curl + javascript
Date: Thu, 5 Jun 2008 22:48:17 -0500
to help others with the same problem. the viewstate issue has been
resolved using a function found on php.net under the curl manual. thanks
for all the help everyone.
----- Original Message -----
From: "Colleen R. Dick"
To: "curl with PHP"
Subject: Re: curl + javascript
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://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://www.hollywoodlife.net/younghollywoodawards2008/
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2008-06-06