Difference between revisions of "Talk:WebAPI/GetSchema"

From Team Fortress Wiki
Jump to: navigation, search
(HTTP Last-Modified header not appearing)
 
(HTTP Last-Modified header not appearing: Econ, not TF.)
Line 27: Line 27:
  
 
[[User:VMDX|VMDX]] 23:36, 24 August 2011 (PDT)
 
[[User:VMDX|VMDX]] 23:36, 24 August 2011 (PDT)
 +
 +
[netshroud@Helios:~] $ curl -I http://api.steampowered.com/ITFItems_440/GetSchema/v0001/?key=[REDACTED]&language=en
 +
[1] 4508
 +
[netshroud@Helios:~] $ HTTP/1.1 200 OK
 +
expires: Thu, 25 Aug 2011 06:34:07 GMT
 +
Content-Type: application/json; charset=UTF-8
 +
Via: 1.1 api.steampowered.com
 +
Date: Thu, 25 Aug 2011 06:32:06 GMT
 +
X-Varnish: 1300007865
 +
Age: 0
 +
Via: 1.1 varnish
 +
Content-Length: 649245
 +
Connection: Keep-Alive
 +
 +
^C
 +
[1]+  Done                    curl -I http://api.steampowered.com/ITFItems_440/GetSchema/v0001/?key=[REDACTED]
 +
[netshroud@Helios:~] $ curl -I http://api.steampowered.com/IEconItems_440/GetSchema/v0001/?key=[REDACTED]&language=en
 +
[1] 4510
 +
[netshroud@Helios:~] $ HTTP/1.1 200 OK
 +
 +
expires: Thu, 25 Aug 2011 06:34:21 GMT
 +
last-modified: Wed, 24 Aug 2011 14:01:20 GMT
 +
Content-Type: application/json; charset=UTF-8
 +
Via: 1.1 api.steampowered.com
 +
Date: Thu, 25 Aug 2011 06:32:19 GMT
 +
X-Varnish: 1300013588
 +
Age: 0
 +
Via: 1.1 varnish
 +
Content-Length: 693145
 +
Connection: Keep-Alive
 +
 +
^C
 +
[1]+  Done                    curl -I http://api.steampowered.com/IEconItems_440/GetSchema/v0001/?key=[REDACTED]
 +
[netshroud@Helios:~] $ curl -H "if-modified-since: Wed, 24 Aug 2011 14:01:20 GMT" -I http://api.steampowered.com/IEconItems_440/GetSchema/v0001/?key=[REDACTED]
 +
HTTP/1.1 304 Not Modified
 +
Date: Thu, 25 Aug 2011 06:56:42 GMT
 +
Via: 1.1 varnish
 +
X-Varnish: 1197551004
 +
Last-Modified: Wed, 24 Aug 2011 14:01:20 GMT
 +
Expires: Thu, 25 Aug 2011 06:36:40 GMT
 +
Connection: Keep-Alive
 +
 +
[netshroud@Helios:~] $
 +
: Looks like it only support IEconItems, not ITFItems. (By the way, I only just realised why curl keeps running in the background like that. Stupid ampersand.) -- [[User:Netshroud|{{TF2B|text = Netshroud | quality = unusual | size = 13px}}]] [[File:Killicon_backstab.png|22px|link=User:Netshroud]] <small>([[User_talk:Netshroud|talk]] | [[Special:Contributions/Netshroud|contribs]])</small> 23:43, 24 August 2011 (PDT)

Revision as of 06:43, 25 August 2011

HTTP Last-Modified header not appearing

I can't seem to get HTTP Last-Modified header to appear on GetSchema. Has anyone successfully used that header?

Below is one of my curl attempts.

curl -v -H "If-Modified-Since: Wed, 24 Aug 2011 11:08:08 GMT" http://api.steampowered.com/ITFItems_440/GetSchema/v0001/?key=<MY_KEY>&language=en

Trying 63.228.223.110... connected Connected to api.steampowered.com (63.228.223.110) port 80 (#0) GET /ITFItems_440/GetSchema/v0001/?key=<MY_KEY> HTTP/1.1 User-Agent: curl/7.19.7 (universal-apple-darwin10.0) libcurl/7.19.7 OpenSSL/0.9.8l zlib/1.2.3 Host: api.steampowered.com Accept: */* If-Modified-Since: Wed, 24 Aug 2011 11:08:08 GMT

HTTP/1.1 200 OK expires: Thu, 25 Aug 2011 06:25:05 GMT Content-Type: application/json; charset=UTF-8 Via: 1.1 api.steampowered.com Content-Length: 649245 Date: Thu, 25 Aug 2011 06:45:07 GMT X-Varnish: 1197263039 Age: 0 Via: 1.1 varnish Connection: keep-alive

VMDX 23:36, 24 August 2011 (PDT)

[netshroud@Helios:~] $ curl -I http://api.steampowered.com/ITFItems_440/GetSchema/v0001/?key=[REDACTED]&language=en
[1] 4508
[netshroud@Helios:~] $ HTTP/1.1 200 OK
expires: Thu, 25 Aug 2011 06:34:07 GMT
Content-Type: application/json; charset=UTF-8
Via: 1.1 api.steampowered.com
Date: Thu, 25 Aug 2011 06:32:06 GMT
X-Varnish: 1300007865
Age: 0
Via: 1.1 varnish
Content-Length: 649245
Connection: Keep-Alive

^C
[1]+  Done                    curl -I http://api.steampowered.com/ITFItems_440/GetSchema/v0001/?key=[REDACTED]
[netshroud@Helios:~] $ curl -I http://api.steampowered.com/IEconItems_440/GetSchema/v0001/?key=[REDACTED]&language=en
[1] 4510
[netshroud@Helios:~] $ HTTP/1.1 200 OK

expires: Thu, 25 Aug 2011 06:34:21 GMT
last-modified: Wed, 24 Aug 2011 14:01:20 GMT
Content-Type: application/json; charset=UTF-8
Via: 1.1 api.steampowered.com
Date: Thu, 25 Aug 2011 06:32:19 GMT
X-Varnish: 1300013588
Age: 0
Via: 1.1 varnish
Content-Length: 693145
Connection: Keep-Alive

^C
[1]+  Done                    curl -I http://api.steampowered.com/IEconItems_440/GetSchema/v0001/?key=[REDACTED]
[netshroud@Helios:~] $ curl -H "if-modified-since: Wed, 24 Aug 2011 14:01:20 GMT" -I http://api.steampowered.com/IEconItems_440/GetSchema/v0001/?key=[REDACTED]
HTTP/1.1 304 Not Modified
Date: Thu, 25 Aug 2011 06:56:42 GMT
Via: 1.1 varnish
X-Varnish: 1197551004
Last-Modified: Wed, 24 Aug 2011 14:01:20 GMT
Expires: Thu, 25 Aug 2011 06:36:40 GMT
Connection: Keep-Alive

[netshroud@Helios:~] $
Looks like it only support IEconItems, not ITFItems. (By the way, I only just realised why curl keeps running in the background like that. Stupid ampersand.) -- Netshroud Killicon backstab.png (talk | contribs) 23:43, 24 August 2011 (PDT)