Advertisement
Guest User

Untitled

a guest
Sep 21st, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. const wchar_t *contentTypeList[] = { L"application/dicom", L"multipart/related", NULL };
  2. WinHttpOpenRequest(hConnect, L"GET", path, NULL, WINHTTP_NO_REFERER, contentTypeList, 0);
  3. WinHttpSendRequest(...
  4. WinHttpReceiveResponse(...
  5. WinHttpQueryDataAvailable(hRequestHandle, &dwSize);
  6.  
  7. wchar_t *contentType = L"Content-Type: multipart/form-related; type=application/dicom";
  8. WinHttpAddRequestHeaders(httpContext->hRequest, contentType, (unsigned long)-1, WINHTTP_ADDREQ_FLAG_ADD_IF_NEW);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement