error response from http-request (http-library)

moster67

Expert
Licensed User
Longtime User
Erel or Agraham (or anyone who knows the inner workings of B4PPC):

When debugging line by line this code :

URL="http://" & myIPAddress & ":" & myport & "/"
Dim test As String

request.New1(URL)
Response.New1
test=request.ResponseCode
Response.Value = Request.GetResponse
Response.Close

I get first a value = 0 in test-variable (test=request.ResponseCode) then I get an error from B4PPC saying HTTP response code = 500 (which means Internal Server Error).

OK, this is not really the problem. The problem is that using HTTP-Utils in B4A, I can connect to this server but with B4PPC, I cannot using above code.

So I wanted to test and reproduce this in VB.Net and see if I get the same error. I guess your http-library in B4PPC is a wrapper-code written in C# and I wanted to ask you if you can share this code with me so I can test in Visual Studio. If I understand and if I can reproduce the problem in C# or VB.Net, then I can report the problem to the developers of this web-server so they make check if it is a problem at their end or not.

Edit: Just to clarify: the B4PPC-code worked with the previous web-server so I know that the B4PPC-code (and http-library) is good and working - that is why I believe the problem is at their end.


Many thanks in advance for your help.
 
Last edited:

moster67

Expert
Licensed User
Longtime User
Thanks!

Stupid me! :sign0013:

I did not remember that it was available in the library-folder.

Just another related question: Can I simply add that class in a C#-project and then call it "as it is"?
 
Last edited:
Cookies are required to use this site. You must accept them to continue using the site. Learn more…