Welcome, guest Sign Out

YDN Blog Archive: October 2005

« Previous | Main | Next »


October 5, 2005

Getting Less From Yahoo! Search

Several people have asked us about compressing the XML we return from Yahoo! Search Web Services. We'd been reluctant to do it because some browsers and platforms claim to support compression without actually doing so. However, we can now return compressed data to clients that support compression while working well with systems that don't support it so well.

If you want the data we return to be compressed, do the following:

1) Use HTTP 1.1.
2) Pass in an 'Accept-Encoding: gzip' header.
3) Spoof your user-agent to be Mozilla/5.0 (or higher).

Don't forget to do the expansion on the other end!

Will this save you time? Quite possibly. XML compresses nicely, and savings of 50% on the data size are not uncommon. Depending on how busy your processor is, less data over the network may be fast enough to offset the cost of decompression.

Posted at 4:33 PM | Comments (2)

New! User Product Review for Yahoo! Shopping

We've added a new call to the Shopping API, User Product Review. It allows you to retrieve Yahoo! user reviews for a specific product and sort them in different ways so that you always find the reviews you are looking for. Track new recommendations, find the most recommended products and keep tabs on the low performers.

Posted at 11:43 AM | Comments (2)

Subscribe

YDN Blog: Get Yahoo! Developer Network Blog on your personalized My Yahoo! home page.

Add To My RSS Feed

YDN Link Blog: Get Yahoo! Developer Network Linkblog on your personalized My Yahoo! home page.

Add To My RSS Feed

Recent Readers

YDN LIBRARIES & BEST PRACTICES

YAHOO! APIs & WEB SERVICES

LANGUAGE CENTERS

Copyright © 2009 Yahoo! Inc. All rights reserved. Copyright | Privacy Policy

Help us continue to improve the Yahoo! Developer Network: Send Your Suggestions