Closed surfer-silver closed 1 month ago
HttpDownload
button works here both with rate limit and without one in both IDE and compiled.
thank your for your prompt reply... it was my mistake ... it is for [HTTP Request] Sir... i tried your example manipulated but same ... but [cTlsSocketHTTPS] working ok. trying to connect with https://ipinfo.io same error even tried given links no success your work is just mind blowing it mesmerizes me
Can you prepare a failing project?
I'm testing with latest HttpRequest.dll
this code
Option Explicit
Private Sub Form_Load()
With New cHttpRequest
.Open_ "GET", "https://ipinfo.io/json"
.Send
Debug.Print .ResponseText
End With
End Sub
... and it works here.
Try downloading and testing with latest HttpRequest.zip from Releases section.
tested with cHttpRequest class in Basic sample project, that means no use of cHttpRequest class
Ok, in /test/Basic/Project1.vbp I just changed Command2 event Click to this
Private Sub Command2_Click()
With New cHttpRequest
.Open_ "GET", "https://ipinfo.io/json"
.Send
Debug.Print .ResponseText
End With
End Sub
. . . and it works here on clicking HTTP Request
button.
Btw, similar to your problem was fixed in commit 3935cfcb4823b30a2f1f0571facc683f8581afa3 about 3 weeks ago.
i already did this.. but again i download sourcecode... removed previous extract , i am using the Basic project class as already used there.
change as per above and boom same error here is the conditional ASYNCSOCKET_NO_TLSSERVER = 1 : USE_DEBUG_LOG = 1 : USE_TLS = 1 : Dummy = 1
see screen shot
other than this can you please guide me to use github with vb6 properly (i know its not the right path only way to communicate)
Can you put a breakpoint on cHttpRequest.pvSetError
method and when it gets hit post screenshot of the call-stack dialog (Ctrl+L)?
without changing anything screenshot 1
with other included locals too
Weird. It looks like you are not using the latest version of cHttpRequest.cls -- the code is currently different for line 1337 with the fix in commit 3935cfcb4823b30a2f1f0571facc683f8581afa3 I already mentioned above.
running perfectly... just downloaded the released version ... thought all changes merged in released version provided ... now lesson learned for future
if possible, please share your experience of using git hub with vb6 it will help so many people as you can see the result just because of github again thanks alot for such wonderfull code
There are GUI clients like GitHub Desktop or Sourcetree which make life easier in the beginning.
test project Basic raises this error in latest release