Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder
    Join Date
    Jan 2004
    Location
    Des Moines, Iowa
    Posts
    219
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Grabbing Information

    Hello all...

    I have a client who items for sale on their site. They sell books. The publishers of these books have websites from where we can get the book's cover images and the descriptions.

    These books can be searched via an ISBN number (a 10 digit number) or by title.

    Most of the sites utilize the GET method or have something like bookID="ISBN" in the URL... and so I can simply utilize the URL to find the page for the book and then subsequently grab the image url and description.

    HOWEVER, I have quite a few sites that utilize the POST method and have no identifiable way to find the book page other than utilizing their Search then go to the page for the book.

    The help I need is this... How can I grab a site's search page and submit to it so that I can then locate the url for the book, subsequently then I can find the image url and then the description.

    Any ideas?

    Thanks!
    Rich S. Wyatt
    D3 Web Creations

  • #2
    raf
    raf is offline
    Master Coder
    Join Date
    Jul 2002
    Posts
    6,589
    Thanks
    0
    Thanked 0 Times in 0 Posts
    can't you just look at the action-attribute of the formtag to see which page to post to?
    + look at the searchfield to know the name of the variables you need to post?
    Posting guidelines I use to see if I will spend time to answer your question : http://www.catb.org/~esr/faqs/smart-questions.html

  • #3
    Regular Coder
    Join Date
    Jan 2004
    Location
    Des Moines, Iowa
    Posts
    219
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Yes - I can do that and have done that... However, what I'm lacking is exactly how to post that info?

    For instance, there are some that would be...

    <form action=search.asp method=POST>

    and maybe have an input of

    <input type=hidden name=category value=something>

    and maybe a

    <input type=text name=searchText>

    doing something like this:

    http://somedomain.com/search.asp?cat...hText=bookname

    doesn't work for most of the "POST" sites... that works fine when the site is using GET.
    Rich S. Wyatt
    D3 Web Creations

  • #4
    Mega-ultimate member
    Join Date
    Jun 2002
    Location
    Winona, MN - The land of 10,000 lakes
    Posts
    1,855
    Thanks
    1
    Thanked 45 Times in 42 Posts
    This little function might help (found it searching through the php.net user comments under HTTP stuff)...

    http://nf.wh3rd.net/projects/http.inc/http.inc


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •