curl on Ad network with redirect


/ Published in: Bash
Save to your folder(s)

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


Copy this code and paste it in your HTML
  1. $ curl -O -L -v "http://po4.realtimematrix.net/openads/www/delivery/avw.php?zoneid=74"
  2.  
  3. * About to connect() to po4.realtimematrix.net port 80 (#0)
  4. * Trying 208.96.12.47... connected
  5. * Connected to po4.realtimematrix.net (208.96.12.47) port 80 (#0)
  6. > GET /openads/www/delivery/avw.php?zoneid=74 HTTP/1.1
  7. > 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
  8. > Host: po4.realtimematrix.net
  9. > Accept: */*
  10. >
  11. < HTTP/1.1 302 Found
  12. < Date: Thu, 05 Mar 2009 19:59:51 GMT
  13. < Server: Apache
  14. < X-Powered-By: PHP/5.2.3
  15. < Pragma: no-cache
  16. < Cache-Control: private, max-age=0, no-cache
  17. < Expires: Mon, 26 Jul 1997 05:00:00 GMT
  18. < Set-Cookie: OAID=3d70504e0c2498bcf15aa9c80a567769; expires=Fri, 05-Mar-2010 19:59:51 GMT; path=/
  19. < P3P: CP="CUR ADM OUR NOR STA NID"
  20. < Set-Cookie: OAGEO=US%7CCA%7CBerkeley%7C%7C37.8781%7C-122.271%7C%7C%7C%7C%7C; path=/
  21. < 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
  22. %22http%3A%2F%2Fwww.vortexme.info%22%3B%7D; path=/
  23. < Location: http://po4.realtimematrix.net/openads/www/delivery/ai.php?filename=verysocial.png&contenttype=png
  24. < Content-Length: 0
  25. < Content-Type: text/html
  26. <
  27. % Total % Received % Xferd Average Speed Time Time Time Current
  28. Dload Upload Total Spent Left Speed
  29. 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Connection #0 to host po4.realtimematrix.net left intact
  30. * Issue another request to this URL: 'http://po4.realtimematrix.net/openads/www/delivery/ai.php?filename=verysocial.png&contenttype=png'
  31. * Re-using existing connection! (#0) with host po4.realtimematrix.net
  32. * Connected to po4.realtimematrix.net (208.96.12.47) port 80 (#0)
  33. > GET /openads/www/delivery/ai.php?filename=verysocial.png&contenttype=png HTTP/1.1
  34. > 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
  35. > Host: po4.realtimematrix.net
  36. > Accept: */*
  37. >
  38. < HTTP/1.1 200 OK
  39. < Date: Thu, 05 Mar 2009 19:59:51 GMT
  40. < Server: Apache
  41. < X-Powered-By: PHP/5.2.3
  42. < Last-Modified: Wed, 30 Jan 2008 11:39:46 GMT
  43. < Content-Length: 5169
  44. < Content-Type: image/png; name=verysocial.png
  45. <
  46. { [data not shown]
  47. Warning: Failed to create the file avw.php?zoneid=74
  48. * Failed writing body
  49. 52 5169 52 2709 0 0 6512 0 --:--:-- --:--:-- --:--:-- 6512* Closing connection #0
  50.  
  51. curl: (23) Failed writing body

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.