[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
HTTP headers "Accept"
Hi,
Let me start by thanking all the contributors of this list that have
helped me over the years with your questions and responses, Specially
Scott and Thomas.
Problem:
Since Yahoo stopped supporting the where.yahoo.com service to geocode
addresses, I'm using the web service from smartystrees.com to clean and
geocode addresses on and interactive job.
http_url_get_xml() was working great with Yahoo! Because the default
response would be an XML document, however the default response from
smartystreets is a json document. To get the response as an XML I need
to pass the HTTP header "Accept:text/xml".
Question:
I know we can pass the "content-type" HTTP header... is there a way to
pass the HTTP header "Accept:text/xml"?
You can see the documentation at
[1]http://smartystreets.com/kb/liveaddress-api/rest-endpoint for more
details.
Thanks,
Tomas Martinez | IT Department | Systems Analyst
City Furniture | 6701 N Hiatus Road | Tamarac, FL 33321
| [2]www.cityfurniture.com
References
1. http://smartystreets.com/kb/liveaddress-api/rest-endpoint
2. http://www.cityfurniture.com/
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------