It's all about the answers!

Ask a question

How do I get a list of all project areas from ccm


Lewis Tsao (2174963) | asked May 26 '17, 12:42 p.m.

I have successfully got a list of all project areas in 5.x. However I am getting errors in 6.0.3.

Using curl or perl lwp::useragen http get accessing https://xxxxxx/ccm/process/project-areas

In my header I have "Accept" => "application/rdf+xml"
I get "406 Not Acceptable"

But when I remove it from the header or change it "Accept" => "application/rdf" or "Accept" => "application/xml" ore even "Accept" => "application/xml+rdf"
I get the list of projects as before.

Which one is correct. Or has it changed? To what?
I would prefer to have the same accept string once I get past login stage.

Thanks


Comments
Lewis Tsao commented May 26 '17, 12:44 p.m.

oops...
forgot...

I mean has the accept changed for everything?

2 answers



permanent link
Donald Nong (14.5k614) | answered May 27 '17, 2:12 a.m.

"Accept: application/xml" works for me. You can also try "https://host:port/ccm/oslc/workitems/catalog".


permanent link
Shasi kumar (112) | answered Jun 05 '17, 5:05 a.m.

Hi Lewis,

The same problem exists for me as well !!!!  Couldn't figure out why this is occurring.

While accessing the URL https://xxxxxx/ccm/process/project-areas with header param "application/rdf+xml", it throws a "406 Not Acceptable" response. But I get a successful response when i remove this "application/rdf+xml" parameter.




I resolved this by using the URL : https://xxxxxx/ccm/oslc/workitems/catalog


and I get a successful response with a list of all projects



Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.