-2
A
回答
1
使用Content-Type: application/x-www-form-urlencoded
时,请使用改为;
import { URLSearchParams } from '@angular/http';
和您的文章函数内部,不发你的对象body
,而不是这样做:
let postBody = new URLSearchParams();
postBody.set('yourProperty1', body.yourProperty1);
postBody.set('yourProperty12', body.yourProperty2);
...
return this._htpp.post('yourUrl', postBody, options)
.map(...)
相关问题
- 1. Angular 2:Http POST错误
- 2. Symfony 2 Angular JS HTTP POST
- 3. Angular 2 http post + Nodejs express
- 4. Angular 2,http post不工作
- 5. Angular 2 urlencoded在http post
- 6. Angular 2 HTTP post no HTTP-resource found
- 7. Django&Angular 2 Error {_dataService:undefined}
- 8. Angular 2 Promise throw error
- 9. Angular 2+ HTTP POST和GDrive API。与名字
- 10. Angular 2 Http post run获取错误
- 11. Angular 2 Http-Post不能正常工作
- 12. angular 2 http post方法意外的JSON输入结束
- 13. Angular 2 http post null Web Api Core
- 14. Ionic 2 cordova http error
- 15. Angular 2 http post在json对象周围添加引号
- 16. Android URL和HTTP Post Error
- 17. Angular 2 RC 4 Http post not firing
- 18. angular 2 http withCredentials
- 19. Angular 2 http stub
- 20. HTTP POST not working.Getting Not Found error
- 21. Dynamic/Reactive Forms Error - Angular 2
- 22. angular $ http post with headers
- 23. Angular 2 Http错误
- 24. Angular 2 HTTP无效
- 25. Angular 2 HTTP GET相当于Angular HTTP GET
- 26. Angular $ http POST to target =“_ blank”
- 27. Angular 2 http服务
- 28. Angular 2 http calls
- 29. HTTP Angular 2?
- 30. VS 2012:Post Build xcopy error 2
请随时发布您的代码在你的问题* *代码以及任何错误消息:) – Alex
请阅读如何在此处提问:http://stackoverflow.com/help/how-to-ask – CodeLikeBeaker