Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Using cURL with ccm/rpt and getting 505 HTTP Version not supported

Hello,

I send the following request to the RTC server via z/OS USS using cURL:

GET /ccm/rpt/repository/foundation?fields=foundation/iteration[developmentLine
/name='AAAA BBBBB']

Which returns the 505 error. When I do the same thing from a web browser it works.

Is there something about the [ ] that would cause this type of error from RTC?

Thanks
Mark.

0 votes


Accepted answer

Permanent link
This is a curious one. I have to turn on Tomcat access log to find out what's going on. The HTTP 505 code is quite misleading, as the request is indeed in HTTP/1.1 protocol. The cause that I can see is the incorrect encoding (or rather the lack of encoding) of the string condition. So instead of sending
        'AAAA BBBBB'
we need to send
        %27AAAA%20BBBBB%27

At least it works for me now on Red Hat Linux.
Mark Noonan selected this answer as the correct answer

1 vote


2 other answers

Permanent link
If I send: https://clm.example.com:9443/ccm/rpt/repository/foundation?fields=foundation/iteration[developmentLine /name='AAAA BBBBB']  with a rest client, I get 

Error 500: CRRED0121E: Invalid filter condition.

I am not sure what CURL does, bu the URL is missing the first part of the URL e.g. https://clm.example.com:9443

I would consider to use a REST Client to play with what to send, before using CURL.

0 votes

Comments

Hi Ralph,


Thanks. The problem as I see it is with the [ ] acceptance of the braces. Whenever I get to that point in the cURL call it starts rejecting the the HTTP version. Which is quite strange, as I can do all sorts of other RTC cURL requests without any errors.

Thanks,
Mark


Permanent link
Hello Donald,

Thanks. That was it, I had to change a few of the characters to the % vervsions. My curl version doesn't have --urlencode option.

It works now.

Regards
Mark

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 12,027

Question asked: Feb 15 '16, 6:53 a.m.

Question was seen: 5,800 times

Last updated: Feb 16 '16, 12:55 a.m.

Confirmation Cancel Confirm