Author | Topic: HTTPS - LoadFromUrl() - only errors | |
---|---|---|
Hubert Brandel | HTTPS - LoadFromUrl() - only errors on Fri, 12 Mar 2004 00:40:59 +0100 Hi, i am trying to load a HTTPS secure page with this code, but only get NIL back. IEE and Firefox Requesters can load the HTTPS page correct. Any idea ? Bye Hubert #include "AsiNet.ch" #pragma Library( "Asinet10.lib" ) PROCEDURE Main() cURL := "http://192.168.0.1/status.htm " type in https:// ... do while .t. cls @0,0 say "URL:" get cURL read if lastkey() = 27 exit else if "HTTPS" $ upper(cURL) i thought LoadFromUrl() does ist automatik, but don't work @24,1 say "HTTPS" ?? INTERNET_DEFAULT_HTTPS_PORT,INTERNET_COMMUNICATION_SECURE cTxt := LoadFromUrl(alltrim(cURL),; INTERNET_DEFAULT_HTTPS_PORT ,; INTERNET_COMMUNICATION_SECURE ) if cTxt = NIL cTxt := "*** Fehler NIL ***" endif else @24,1 say "HTTP" cTxt := LoadFromUrl(alltrim(cURL)) endif if empty(cTxt) cTxt := "*** kein Inhalt ***" endif memoedit(cTxt,1,1,23,79) endif enddo RETURN | |
Thomas Braun | Re: HTTPS - LoadFromUrl() - only errors on Sat, 13 Mar 2004 10:07:31 +0100 Hubert Brandel wrote: > Hi, > > i am trying to load a HTTPS secure page with this code, but only get NIL > back. > IEE and Firefox Requesters can load the HTTPS page correct. > > Any idea ? AFAIK, ASINET can't handle https yet. Thomas Xbase++ FAQ : www.software-braun.de/xbfaq/xbfaq.htm "Actually this is a common misconception...I do *not* in fact have a lot of time on my hands at all! I just have a very very very very bad sense of priorities." -- Dean Engelhardt | |
Andreas Herdt | Re: HTTPS - LoadFromUrl() - only errors on Mon, 15 Mar 2004 14:36:44 +0100 Hi, The function LoadFromUrl() from the asinet library is https aware. When the url starts with https://.... this will be tracked by asinet and a secure transaction is initiated via ssl port. If you have trouble with https request, a sample would be very usefull that demostrates the problem. Andreas Herdt Alaska Research & Development Hubert Brandel wrote: > Hi, > > i am trying to load a HTTPS secure page with this code, but only get NIL > back. > IEE and Firefox Requesters can load the HTTPS page correct. > > Any idea ? > > Bye > Hubert > > #include "AsiNet.ch" > #pragma Library( "Asinet10.lib" ) > > PROCEDURE Main() > > cURL := "http://192.168.0.1/status.htm > " type in https:// ... > do while .t. > cls > > @0,0 say "URL:" get cURL > read > if lastkey() = 27 > exit > else > if "HTTPS" $ upper(cURL) i thought LoadFromUrl() does ist > automatik, but don't work > @24,1 say "HTTPS" > ?? INTERNET_DEFAULT_HTTPS_PORT,INTERNET_COMMUNICATION_SECURE > cTxt := LoadFromUrl(alltrim(cURL),; > INTERNET_DEFAULT_HTTPS_PORT ,; > INTERNET_COMMUNICATION_SECURE ) > if cTxt = NIL > cTxt := "*** Fehler NIL ***" > endif > else > @24,1 say "HTTP" > cTxt := LoadFromUrl(alltrim(cURL)) > > endif > if empty(cTxt) > cTxt := "*** kein Inhalt ***" > endif > memoedit(cTxt,1,1,23,79) > endif > enddo > > RETURN > > Regards Andreas Herdt [Alaska Research & Development] | |
Thomas Braun | Re: HTTPS - LoadFromUrl() - only errors on Mon, 15 Mar 2004 17:01:28 +0100 Hi Andreas, > The function LoadFromUrl() from the asinet library is https aware. Ah! Thanks for that info. Thomas Braun | |
Phil Ide | Re: HTTPS - LoadFromUrl() - only errors on Tue, 16 Mar 2004 11:53:19 +0000 Thomas, >> The function LoadFromUrl() from the asinet library is https aware. > > Ah! Thanks for that info. ? It's in the docs... Regards, Phil Ide *************************************** * Xbase++ FAQ, Libraries and Sources: * * goto: http://www.idep.org.uk/xbase * *************************************** On leave from CNN... | |
Thomas Braun | Re: HTTPS - LoadFromUrl() - only errors on Wed, 17 Mar 2004 07:37:44 +0100 Phil Ide wrote: >>> The function LoadFromUrl() from the asinet library is https aware. >> >> Ah! Thanks for that info. > > ? It's in the docs... Shame on me... I didn't read them That teaches me not to believe all the things I read in the newsgroup. I thought I read some months ago that ASINET wasn't able to handle https request... Thomas Xbase++ FAQ : www.software-braun.de/xbfaq/xbfaq.htm "Tomorrow I will seven eagles see, a great comet will appear, and voices will speak from whirlwinds fortelling monstrous and fearful things -- This Universe never did make sense; I suspect it was built on government contract." -- Robert A. Heinlein, "666" | |
Phil Ide | Re: HTTPS - LoadFromUrl() - only errors on Wed, 17 Mar 2004 09:02:35 +0000 Thomas, >> ? It's in the docs... > > Shame on me... I didn't read them > > That teaches me not to believe all the things I read in the newsgroup. > > I thought I read some months ago that ASINET wasn't able to handle https > request... In general no, but the LoadFromURL() function is pretty cool. Regards, Phil Ide *************************************** * Xbase++ FAQ, Libraries and Sources: * * goto: http://www.idep.org.uk/xbase * *************************************** Save the whales--collect whole sets! | |
Anand Gupta | Re: HTTPS - LoadFromUrl() - only errors on Wed, 17 Mar 2004 17:08:25 +0530 I have an application, which synchs the local POS app, with the webserver, via LoadFromURL(), everytime it manage to fine a Net connection, whilst its ON. Running with no problem across some 100+ installation in US since over one and half years. Anand "Phil Ide" <phil@idep.org.uk> wrote in message news:enzbpf7kjo1v.dlg@idep.org.uk... > Thomas, > > >> ? It's in the docs... > > > > Shame on me... I didn't read them > > > > That teaches me not to believe all the things I read in the newsgroup. > > > > I thought I read some months ago that ASINET wasn't able to handle https > > request... > > In general no, but the LoadFromURL() function is pretty cool. > > Regards, > -- > Phil Ide > > *************************************** |