Hi.
I'm at my wits end. ](*,)
All I want to do is retrieve a page from the web and strore it in a text var, bigtext var, file, - I really don't care.
This is what I have so far:
// Only var: WinHTTPRequest - Automation - 'Microsoft WinHTTP Services, version 5.1'.WinHttpRequest
IF NOT ISCLEAR(WinHTTPRequest) THEN CLEAR(WinHTTPRequest);
CREATE(WinHTTPRequest);
WinHTTPRequest.Open('GET','http://www.mibuso.com',FALSE);
WinHTTPRequest.Send;
MESSAGE('Status='+FORMAT(WinHTTPRequest.Status()));
MESSAGE('StatusText='+WinHTTPRequest.StatusText());
The Status and StatusText return '200' and 'OK'.
But I have wasted several hours trying to get past this point. I've messed with instreams, outstreams, variants, blobs, - you name it.
Can anyone supply the next few lines?
Thanks' in advance
Answers
Also you can search the Forum for WinHTTP
Regards
For others, reading this, in his code IStream is an InStream variable. You access the text of the page by doing something like this:
i have try this in Navision 3.70B and it did'n work i've got the message with the following informations:
This data type is not supported by C / SIDE.
You have access to data of the following data types:
VT_VOID, VT_I2, VT_I4, VT_R4, VT_R8, VT_CY, VT_DATE, VT_BSTR and VT_BOOL
the debugger hold on
thanks for some help
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n