dealertrend / wordpress-plugin-inventory-api

This is the new WordPress plugin for DealerTrend, Inc. It will interface with their Automotive Information System's API.
http://www.dealertrend.com
GNU General Public License v2.0
22 stars 6 forks source link

Bad 400 Headers #97

Closed grok closed 12 years ago

grok commented 12 years ago

400s being returned for no results, example: http://www.wolfchasecdj.com/inventory/Used/?price_to=10000&certified=yes

grok commented 12 years ago

Proof:

[grok@Jutsu:/tmp] $ curl -I "http://subdomain.wordpress.local/?taxonomy=inventory&certified=yes&price_from=50001&price_to"
HTTP/1.1 400 Bad Request
Date: Thu, 14 Jul 2011 17:00:39 GMT
Server: Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8r DAV/2 PHP/5.3.4 mod_fastcgi/2.4.2
X-Powered-By: PHP/5.3.4
X-Pingback: http://subdomain.wordpress.local/xmlrpc.php
Connection: close
Content-Type: text/html; charset=UTF-8
grok commented 12 years ago

Fixed.

Now:

[grok@Jutsu:/tmp] $ curl -I "http://subdomain.wordpress.local/?taxonomy=inventory&certified=yes&price_from=-50001&price_to"
HTTP/1.1 200 OK
Date: Thu, 14 Jul 2011 17:04:14 GMT
Server: Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8r DAV/2 PHP/5.3.4 mod_fastcgi/2.4.2
X-Powered-By: PHP/5.3.4
X-Pingback: http://subdomain.wordpress.local/xmlrpc.php
Content-Type: text/html; charset=UTF-8