OK. Adding in the setHTTPDefault and the setRequestHeader got it working.

Now...I need to read an https:// URL

I changed my createrequest to createsecurerequest, and now I have my security 
handle.

The data isn't being read, I have getting a 400 page error instead.

I didn't see a submitsecurerequest() command..

George

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Peter Veenhof
> Sent: Tuesday, July 04, 2006 8:48 AM
> To: [email protected]
> Subject: RE: [U2] CALLHTTP....UV 10
> 
> 
> 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
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to