getting full HTTP response to HTTP request in urlread
显示 更早的评论
Currently urlread uses the command: urlConnection.getInputStream
and then proceeds to do something fairly confusing to me with copying streams via some unsupported stream copier to produce the final output
Unfortunately when there is an error in my request I get nebulous errors instead of the actual error response. Even when I get a successful request, I am still unable to see the headers which can contain important information for what I am doing.
Example error: java.io.IOException: Server returned HTTP response code: 400 for URL:
By using Matlab's proxy settings I can observe the details of the requests through "Fiddler", which has been most helpful, but it would be nice to be able to observe things more concretely in Matlab.
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 App Building 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!