hi
i am using the following c# code in winhttp to open a http request
Win32Api.WinHttpOpenRequest(Winconnection,"POST","/winn/01Primary/",null,"W*INHTTP_NO_REFERER",WINHTTP_DEFAULT_ACCEP T_TYPES,0x00800000);
and my function marshalling looks like
[DllImport("winhttp.dll",
SetLastError=true)]
public static extern IntPtr WinHttpOpenRequest(
IntPtr hConnect,
[MarshalAs(UnmanagedType.LPWStr)] string
pwszVerb,
[MarshalAs(UnmanagedType.LPWStr)] string
pwszObjectName,
[MarshalAs(UnmanagedType.LPWStr)] string
pwszVersion,
[MarshalAs(UnmanagedType.LPWStr)] string
pwszReferrer,
ref byte[] ppwszAcceptTypes,
int dwFlags);
i don't know what is the constant value for
WINHTTP_NO_REFERER and WINHTTP_DEFAULT_ACCEPT_TYPES
to be specified in the WinHttpOpenRequest() function for these two
parameters
[MarshalAs(UnmanagedType.LPWStr)]
string pwszReferrer,
ref byte[] ppwszAcceptTypes,
please help me regarding this issue
regards
bharathi