Jump to content
Larry Ullman's Book Forums

Chapter 10, Accessing Other Web Sites


Recommended Posts

Larry,

 

There's a couple points on page 330 I'd like to discuss.

 

Can you expound on:

 

"... unless you are merely copying the entire contents of a file, you'll need to develop some system for gleaning the parts of a page you want according to how the data is structured." Are there references that go into detail regarding this?

 

Also...

 

Without the aide of gummy-stuff.org (pulled from the web), what resources do we have for format string information? I've noticed the references made in your tips section on page 332; however, do those "networking-related" classes of PEAR supply format strings necessary to communicate with Amazon, Yahoo, etc.?

 

Thanks,

Hacker 

Link to comment
Share on other sites

I don't have the book in front of me, so I'm kind of guessing at an answer here. I believe it's mostly a matter of doing enough Google searches to find what you need. 

 

I mean, a good, public resource is well documented and easy to use. But if you're hacking a way through a non-public resource (or, more precisely, one not designed to be used this way), you definitely have to search and experiment and hack.

Link to comment
Share on other sites

Thank you Larry.

 

I've got another question that came up a bit later in Chapter 10, if you would be so kind...

 

I placed http://www.apple.com/ in my array of URLs to validate (script 10.2 - check_url.php) and it came up 400 Bad Request even though the link works fine.  The http://www.apple.com/ link was flanked by URLs that came up 200 OK in my $urls array.  Can you explain why this might happen?

 

Thanks again,

Hacker

Link to comment
Share on other sites

 Share

×
×
  • Create New...