How do I get a list of all project areas from ccm
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
2 answers
"Accept: application/xml" works for me. You can also try "https://host:port/ccm/oslc/workitems/catalog".
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
Comments
Lewis Tsao
May 26 '17, 12:44 p.m.oops...
forgot...
I mean has the accept changed for everything?