HTTP/1.1 405 Method Not Allowed

Hi,

 Im trying

HttpPost request =

new  HttpPost("http://10.245.18.148:8080/rest/api/2/issue/"+issueNumber+"");

 

{\"fields\": {\"Record URL\" :[\"/http://ddcdev01.hic.hicnet:81/pint2V7/nbcsr/nbcsrEnterAdverseOutcomes.do?forwardFrom=JIRA&action=advrsFromJIRA&docRefID=]}}" );

getting  a following error

 

HTTP/1.1 405 Method Not Allowed [Server: Apache-Coyote/1.1, X-AREQUESTID: 736x16258x1, X-ASEN: SEN-L5439581, Set-Cookie: JSESSIONID=DEAE16935FF6D6E0F0916634755EFF8E; Path=/; HttpOnly, X-Seraph-LoginReason: OK, Set-Cookie: atlassian.xsrf.token=B153-03FQ-FIU5-C4OD|53999ab7b239a3b9d7af64453ca436a9f06059af|lin; Path=/, X-ASESSIONID: 75tibb, X-AUSERNAME: system, Allow: HEAD,DELETE,GET,OPTIONS,PUT, X-Content-Type-Options: nosniff, Content-Type: text/html;charset=utf-8, Content-Language: en, Content-Length: 1013, Date: Wed, 08 Apr 2015 02:16:14 GMT] org.apache.http.conn.BasicManagedEntity@6f2e6f2e

 

1 answer

0 vote
Paulo Hennig Atlassian Team Apr 16, 2015

Make sure you use PUT as your request method.

This other answer should help

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Wednesday in Jira

Join our webinar: How 1B+ feature flag events helped us build the new Jira

Every time you release software, there's a bit of risk – that there's a bug, that something breaks, or that the feature doesn't resonate with customers. Feature flagging helps make high stakes s...

98 views 0 1
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you