juce_win32_Network


#1

Hello jules,

juce_openInternetFile in juce_win32_Network.cpp (L132)

...
                else
                {
                    const TCHAR* mimeTypes[] = { _T("*"), 0 };

                    HINTERNET request = HttpOpenRequest (connection,
                                                         isPost ? _T("POST")
                                                                : _T("GET"),
                                                         uc.lpszUrlPath,
                                                         0, 0, mimeTypes,
                                                         INTERNET_FLAG_RELOAD | INTERNET_FLAG_NO_CACHE_WRITE,
                                                         0);

                    if (request != 0)
                    {
...

If you want to accept all the type/subtypes, I think you should code like below.

                    const TCHAR* mimeTypes[] = { _T("*/*"), 0 };

Some servers return 406 code, when there is only ‘*’ in Accept header field.

Best regards,
ioue


#2

ah, ok, that sounds sensible - thanks!