wwHTTP::nHttpServiceFlags

Flags that are used on the HTTP connection in WinInet. These are passed to WinInet call of HttpOpenRequest(). For Internet Connection Handle options use nServiceFlags instead.

Option values are WinInet constants which can be found here:
http://msdn.microsoft.com/en-us/library/windows/desktop/aa385328(v=vs.85).aspx

o.nHttpServiceFlags

Remarks

You can set multiple flags by adding them (or in some cases use BITOR())

Here are a few common flags you might want to set from wconnect.h.

#DEFINE INTERNET_FLAG_RELOAD            		2147483648
#DEFINE INTERNET_FLAG_SECURE            		8388608
#define INTERNET_FLAG_KEEP_CONNECTION       	0x00400000
#DEFINE INTERNET_FLAG_NO_AUTO_REDIRECT		 	0x00200000 
#DEFINE INTERNET_FLAG_NO_COOKIES                0x00080000

#DEFINE INTERNET_FLAG_IGNORE_CERT_DATE_INVALID  0x00002000
#DEFINE INTERNET_FLAG_IGNORE_CERT_CN_INVALID    0x00001000
#DEFINE INTERNET_FLAG_NO_COOKIES                0x00080000  

Example

loHttp = CREATEOBJECT("wwHttp")

*** Assign a flag value (from wconnect.h or 0x00800000)
loHttp.nHttpServiceFlags = INTERNET_FLAG_NO_COOKIES 

*** Combine multiple values by adding them together
*loHttp.nHttpServiceFlags = INTERNET_FLAG_NO_COOKIES + 0x00400000

lcHtml = loHttp.HttpGet("http://west-wind.com")

See also:

West Wind Web Connection | wwHttp::nServiceFlags |

© West Wind Technologies, 1996-2019 • Updated: 08/21/13
Comment or report problem with topic