Web Crawler via java

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Bart Spearen

    Web Crawler via java

    Hello,

    I am trying to write a web crawler with java and while I have most of it
    worked out and able to access pages, I keep coming up with a cookie problem.

    The long and short of it is that when I first request a page, I recieve from
    my test site ( a commercial site) a warning page telling me that I don't
    have cookies enabled on the browser. Is there a generic http header field I
    need to set to show that the crawler is cookie enabled? How does a site
    actually know on a initial contact that a browser isn't cookie enabled?

    I have found how to read the header for 'set-cookie' keys and how to place
    in the header these keys too. But I can't figure out how this site knows on
    the initial open connection. (and I don't see any 'meta' redirects either).

    Any help will be appreciated!

    Thanks.

    Bart


Working...