带有angularjs的$ HTTP帖子给出了错误 [英] $HTTP post with angularjs giving error

查看:126
本文介绍了带有angularjs的$ HTTP帖子给出了错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到http post的问题,并且一直有415错误。我附上了我尝试过的所有代码



我尝试了什么:



所有我尝试从各种网站只是做一个测试方法的帖子,但都失败了相同的错误415.请参阅附加的代码。它有我尝试过的各种选项。

解决方案

引用:

我我遇到http post的问题并且一直有415错误。我附上了我尝试的所有代码



所有可以推断的是你有一个bug。

但是什么bug和哪里是个谜,就像你的代码一样。

提出问题是一项技能 [ ^ ]


I am having issues with http post and getting 415 error all times. I attached the code which has all that i tried

What I have tried:

all i tried from various site to just do a post to a test method but all failed with same error 415. Please see attached code. It has all that i tried with various options.

解决方案

Quote:

I am having issues with http post and getting 415 error all times. I attached the code which has all that i tried


All what can be deduced is that you have a bug.
But what bug and where is a mystery, just like your code.
Asking questions is a skill[^]


这篇关于带有angularjs的$ HTTP帖子给出了错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆