I'm using the HttpClient
and I need to set a non-standard type for the HttpMethod
. Where using HttpWebRequest
only expects a string, HttpClient
expects an HttpMethod
. Enumerating the available values in HttpMethod
, I don't see a way to add a custom one. Any thoughts?
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
- How to know full paths to DLL's from .csproj f
Don't know why I didn't think of trying this before, but I can call
new HttpMethod("MYMETHOD");
Thank you so much. I tried the weirdest stuff, but i did not see this simple solution :)
I try to use CalDAV REST-Requests to connect with my ownCloud-CalDAV-Server within a XAML-C#-MetroApp. Works perfect now. I finally can change the HTTP-Method to the PROPFIND-Type.
Here my Code for retrieving Infos ( http://sabre.io/dav/building-a-caldav-client/ ).