Page 2 of 2

Re: How to grab a https page with cURL/libcURL

Posted: Sat Mar 29, 2014 7:48 pm
by Falko
Hi,

no problem. Your code is very helpfull for me.
Thank you for sharing.

I've changed for me two Result$ to Messagerequester()-Outputs. :wink: :idea:
If everything is correct, I get an AppID.
Otherwise, I get an error in plain text.

Code: Select all

  
...
Result$ = Mid(Answer\Content$, Pos, FindString(Answer\Content$, ",", Pos) - Pos)
              EndIf
            Else
              ;Result$ = Str(Answer\Status)
              MessageRequester("Achtung",Answer\Content$);       Changed for Erroroutput 
            EndIf
          Else
            ;Result$ = Str(Answer\Status)
             MessageRequester("Achtung",Answer\Content$);        Changed for Erroroutput 
          EndIf
...
So can any user test this for Error-Output from PhoneGap.com

Code: Select all

Debug PhoneGap("","","",0); None Password and none Username
PhoneGap wrote:---------------------------
Achtung
---------------------------
{"error":"You need to sign in or sign up before continuing."}
---------------------------
OK
---------------------------

Re: How to grab a https page with cURL/libcURL

Posted: Wed Dec 17, 2014 3:41 pm
by SeregaZ
this https autorization and grab will work with certificate autorization? not login and password, but by select certificate in certificate selector window.

Re: How to grab a https page with cURL/libcURL

Posted: Wed Feb 05, 2020 5:57 pm
by Derren
infratec wrote:Hi,

without curl:

Code: Select all

;.... lots of code
Debug HttpReceive(url$)
Bernd

Hi infratec :D

Thanks a TON for this code.
After trying the PB HTTP-Library for ages and not being able to find a working cUrl binary, I stumbled upon your code.
This is gold!
After ironing out a kink with PB's new "everything is unicode" and the function HttpSendRequest_(), so far it does everything I want (doing some REST stuff) 8) :D :D :D

Re: How to grab a https page with cURL/libcURL

Posted: Wed Feb 05, 2020 6:10 pm
by infratec
You don't need to find a cUrl binary. It is 'inbuild'.

You can use libcurl.pbi to have full access to it.

But there are always more then one way ...