Hi,
I think I had similar problems, but eventually got it working with this
code:
HTTP.METHOD = 'GET'
REQ.HANDLE = '' ; POST.DATA = '' ; TIME.OUT = '' ; RESP.HEADERS = '' ;
RESP.DATA = '' ; HTTP.STATUS = ''
Ret = setHTTPDefault('VERSION','1.1')
Ret = createRequest(URL,HTTP.METHOD,REQ.HANDLE)
Ret = setRequestHeader(REQ.HANDLE,'Connection','Keep-Alive')
RET.STATUS =
SubmitRequest(REQ.HANDLE,TIME.OUT,POST.DATA,RESP.HEADERS,RESP.DATA,HTTP.
STATUS)
Where RESP.DATA will contain the downloaded data
Setting the HTTP Version to 1.1 is what fixed mine to get the data to
come down, I do recall only getting headers previous to that.
Hope that helps
Peter
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of George Gallen
Sent: Monday, July 03, 2006 4:15 PM
To: [email protected]
Subject: [U2] CALLHTTP....UV 10
I'm trying to setup a very simple web call.
STATUS1=CREATEREQUEST(URL,"GET",SHANDLE)
STATUS2=SUBMITREQUEST(SHANDLE,1000,"",HEADERS,RDAT,HSTATUS)
OK. From what I gather, the above two lines, "should" download the
webpage
specified in URL.
I'm getting strange information in HEADERS and RDAT but the HSTATUS says
200
(ok)
What I want to do is access a URL and get the resulting information.
I was using wget, but it keeps hanging. I just want to use something
else, and
thought I'd
try to go UV native.....
In actuality, I will really need to use CREATESECUREREQUEST(), But I'll
tackle
that one
when I get the non-secure working first...:)
Any examples would be very helpful
Thanks
George
George Gallen
Senior Programmer/Analyst
Accounting/Data Division
[EMAIL PROTECTED]
ph:856.848.1000 Ext 220
SLACK Incorporated - Delivering the best in health care information and
education worldwide.
http://www.slackinc.com
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/