Return to Snippet

Revision: 12198
at March 5, 2009 15:31 by rowntreerob


Initial Code
$ curl -O  -L -v  "http://po4.realtimematrix.net/openads/www/delivery/avw.php?zoneid=74"

* About to connect() to po4.realtimematrix.net port 80 (#0)
*   Trying 208.96.12.47... connected
* Connected to po4.realtimematrix.net (208.96.12.47) port 80 (#0)
> GET /openads/www/delivery/avw.php?zoneid=74 HTTP/1.1
> User-Agent: curl/7.16.3 (i686-pc-cygwin) libcurl/7.16.3 OpenSSL/0.9.8i zlib/1.2.3 libssh2/0.15-CVS
> Host: po4.realtimematrix.net
> Accept: */*
>
< HTTP/1.1 302 Found
< Date: Thu, 05 Mar 2009 19:59:51 GMT
< Server: Apache
< X-Powered-By: PHP/5.2.3
< Pragma: no-cache
< Cache-Control: private, max-age=0, no-cache
< Expires: Mon, 26 Jul 1997 05:00:00 GMT
< Set-Cookie: OAID=3d70504e0c2498bcf15aa9c80a567769; expires=Fri, 05-Mar-2010 19:59:51 GMT; path=/
< P3P: CP="CUR ADM OUR NOR STA NID"
< Set-Cookie: OAGEO=US%7CCA%7CBerkeley%7C%7C37.8781%7C-122.271%7C%7C%7C%7C%7C; path=/
< Set-Cookie: OAVARS[default]=a%3A3%3A%7Bs%3A8%3A%22bannerid%22%3Bs%3A3%3A%22112%22%3Bs%3A6%3A%22zoneid%22%3Bs%3A2%3A%2274%22%3Bs%3A6%3A%22oadest%22%3Bs%3A24%3A
%22http%3A%2F%2Fwww.vortexme.info%22%3B%7D; path=/
< Location: http://po4.realtimematrix.net/openads/www/delivery/ai.php?filename=verysocial.png&contenttype=png
< Content-Length: 0
< Content-Type: text/html
<
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0* Connection #0 to host po4.realtimematrix.net left intact
* Issue another request to this URL: 'http://po4.realtimematrix.net/openads/www/delivery/ai.php?filename=verysocial.png&contenttype=png'
* Re-using existing connection! (#0) with host po4.realtimematrix.net
* Connected to po4.realtimematrix.net (208.96.12.47) port 80 (#0)
> GET /openads/www/delivery/ai.php?filename=verysocial.png&contenttype=png HTTP/1.1
> User-Agent: curl/7.16.3 (i686-pc-cygwin) libcurl/7.16.3 OpenSSL/0.9.8i zlib/1.2.3 libssh2/0.15-CVS
> Host: po4.realtimematrix.net
> Accept: */*
>
< HTTP/1.1 200 OK
< Date: Thu, 05 Mar 2009 19:59:51 GMT
< Server: Apache
< X-Powered-By: PHP/5.2.3
< Last-Modified: Wed, 30 Jan 2008 11:39:46 GMT
< Content-Length: 5169
< Content-Type: image/png; name=verysocial.png
<
{ [data not shown]
Warning: Failed to create the file avw.php?zoneid=74
* Failed writing body
 52  5169   52  2709    0     0   6512      0 --:--:-- --:--:-- --:--:--  6512* Closing connection #0

curl: (23) Failed writing body

Initial URL


Initial Description
the call to the url for the ad results in redirect to the 'banner' or image file

Initial Title
curl on Ad network with redirect

Initial Tags
curl

Initial Language
Bash