bug-wget
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-wget] Problem, no getting any response


From: Dan Yamins
Subject: Re: [Bug-wget] Problem, no getting any response
Date: Tue, 24 Nov 2009 10:00:50 -0500

>
> Here is an example of what you probably? want. The cookies aren't required
> for the example and I have removed them for easier reading. This command was
> successful using wget-1.12.1-devel from vista command prompt. Escaping
> quotes will depend on your actual OS and shell.
>
> wget 
> --post-data="{\"searchQueryString\":\"p+2-n+12-c+287466-s+5-r+-t+-ri+-ni+1-x+\",\"isSearchMode\":false}"
> --no-cache --max-redirect=0 --header="Content-Type: application/json"
> http://www.tiffany.com/Shopping/CategoryBrowse.aspx/GetCategoriesXmlBySearchQS-O
>  whatever.xml




Ray and Tony,  that did the trick!!  Thanks so much for your help.   I am
really grateful.

One of the key things I didn't understand was the proper way to format the
request.   I did try trepresenting the json request more directly, using
something of the form "{searchQueryString:....}" but not with the proper
inside quoting.   I think I now begin to understand the principle of how to
encode a json object in text for wget.  (This was a big piece that was
missing for me.   Is it described fully anywhere?).

Also, your quoting works fine on my machine (OSX 10.5.8), bash shell.


Thanks again ,
Dan


reply via email to

[Prev in Thread] Current Thread [Next in Thread]