cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Getting a webpage which uses a search string

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Thu, 24 Mar 2011 22:36:38 -0700

On Thu, Mar 24, 2011 at 10:17:00PM -0700, Manu Parameswaran wrote:
> I am a newbie to cUrl.
> I want to check whether a webpage is displaying properly or not. The webpage
> link contains a search string according to which the final page is displayed.
>
> the link is http://h20000.www2.hp.com/bizsupport/site/search/r4_0/jsp/
> search.jsp?lang=en&cc=us&tx=
> HP%20NC31xx%20Fast%20Ethernet%20NIC%20Driver%20for%20Windows%20Server%202003
>
> but when I try to execute cUrl with this link I am not getting the intended
> page, I got only the main search page (without the search string). its like
> this http://h20000.www2.hp.com/bizsupport/site/search/r4_0/jsp/search.jsp?lang
> =en&cc=us&tx
>
> Is it because the main link contains jsp contents ?

It's likely that the site either uses cookies, or disallows certain web
clients from connecting. Read http://curl.haxx.se/docs/httpscripting.html
especially sections 8, 10 and 13, and see if those suggestions help.

>>> Dan
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-03-25