cURL / Mailing Lists / curl-library / Single Mail


RE: Javascript checks BODYelement.clientWidth before issuing html

From: Daniel Stenberg <>
Date: Sun, 25 Mar 2007 23:23:51 +0200 (CEST)

On Sun, 25 Mar 2007, Tom Donnelly wrote:

> Ralph - thanks for the response I was using LiveHTTPheaders and Paros Proxy
> to try and trap the differences (with a valid cookie plugged into the header
> using curl_setopt) but then I figured it didn't matter what was in the
> headers since the script must obtain and store in a cookie and re-check that
> a valid BODYelement.clientWidth exists.
> The only way for this to exist is for the script to execute in a real
> browser.

That doesn't make sense. The javascript is running in the browser, so if it
sets a cookie when the correct condition is met then you can just as well set
it with libcurl and be happy. The remote site cannot tell if javascript set it
or if something else did.

  Commercial curl and libcurl Technical Support:
Received on 2007-03-25