Is this a typo in the documentation? Shouldn't it actually be http://[namespace].112.2o7.net/b/ss//6?
Wednesday, 6/24/2009 - 10:12pm
Engineering Ser...
Offline
Joined: 01/07/2009
First off, the PDF's get out dated quickly and I would always refer to the documentation presented in this forum first.
Secondly, the example code is correct but in reference to your question, they are both doing the same thing. It's a matter semantics.
For example, the proper header for a submission via POST looks like:
POST /b/ss//6 HTTP/1.0 Host: [rsid].112.2o7.net Content-Length: 593
Which will send data to [rsid].112.2o7.net/b/ss//6
But GET is slightly different as the report suite id needs to be embedded into the path, there is a different endpoint 0 vs 6, and all parameters are attached as querystring parameters to the path.
GET /b/ss/[rsid]/6?cid=blah HTTP/1.0 Host: [rsid].112.2o7.net
Which will send data to [rsid].112.2o7.net/b/ss/[rsid]/0?cid=blah
Does that help?
Nick
Wednesday, 6/24/2009 - 10:56pm
ClearChannel/matt
Offline
Joined: 12/23/2008
Understood, we'll rely on developer.omniture.com whenever possible. Thank you for this resource!
So you're saying that POST submissions should go to [rsid].112.2o7.net/b/ss//6 and not [namespace].112.2o7.net/b/ss//6
Similarly, GET requests should go to [rsid].112.2o7.net/b/ss/[rsid]/0?cid=blah instead of [namespace].112.2o7.net/b/ss/[rsid]/0?cid=blah
It looked wrong to me, I was expecting to see [namespace].112.2o7.net in both cases.
Thursday, 6/25/2009 - 3:21pm
Engineering Ser...
Offline
Joined: 01/07/2009
It's a bad practice and needs to be cleaned up better but essentially they are the same.
First off, the PDF's get out dated quickly and I would always refer to the documentation presented in this forum first.
Secondly, the example code is correct but in reference to your question, they are both doing the same thing. It's a matter semantics.
For example, the proper header for a submission via POST looks like:
POST /b/ss//6 HTTP/1.0Host: [rsid].112.2o7.netContent-Length: 593
Which will send data to
[rsid].112.2o7.net/b/ss//6But GET is slightly different as the report suite id needs to be embedded into the path, there is a different endpoint 0 vs 6, and all parameters are attached as querystring parameters to the path.
GET /b/ss/[rsid]/6?cid=blah HTTP/1.0Host: [rsid].112.2o7.netWhich will send data to
[rsid].112.2o7.net/b/ss/[rsid]/0?cid=blahDoes that help?
Nick