Using OSLC and REST problems
Matias Rodriguez (46●1●10●11)
| asked Jun 16 '11, 3:32 p.m.
edited Mar 03 '14, 5:03 a.m. by Sreerupa Sen (1.0k●4)
I am trying to get information of the workitems through OSLC and REST, i was able to get all the information but when i try to get the Attached Files i get this error:
RESPONSE: Status Code: 400 BAD REQUEST. PAGE: You have followed a direct link to content hosted in a Jazz server. This page has been presented to ensure that a malicious website cannot use cleverly crafted content to circumvent security. If you would like to access the content, please use the link below. The link is the one i am following form my application. Any ideas? I just need to get the information in a txt file... |
4 answers
What content type are you specifying in the Accept header of the request? I think you should only get that response if it thinks the request is coming in from a web browser (i.e. looking for HTML). The Accept header should indicate text/xml, application/xml or application/rdf+xml.
|
I have this problem as well and setting the request header's type and accept values did not make a difference. I tried: (The following pseudo-code is in VB.Net syntax) dim Http as MSXML2.XMLHTTP ... Stuff up here... Http.setRequestHeader("Content-Type", "application/xml") Http.setRequestHeader("Accept", "text/xml") Http.send(jazzUserid & "&" & JazzPassword)
This generates status 400 "Bad Request".
Note that this worked in RTC 4.0.1 and stopped working when we upgraded to 4.0.5. |
somebody has the solution, also I am having the same problem
|
I was having the same issue above (a POST or GET on the authentication URL from VBA was dying from 400 errors, even though the exact same code works from Perl/cuRL.)
|
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.
Comments
Were you able to resolve this? I am having the same problem trying to get photos of users through the API.
example:
https://SERVER:PORT/jazz/resource/content/_Gut94H7ZEeKejIlVdm5llw.jpg
Unfortunately, trying to get to the photo results in the message you posted.