Hello,
I am trying to get a insurance policy info through a license plate check available online by inputing date and license plate info. The url in question is and the details can be added at the bottom of the page :Here is my code:Code:https://huo.hr/hr/provjera-osiguranja
Code:ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 Dim reader As StreamReader Dim Request As HttpWebRequest = HttpWebRequest.Create("https://huo.hr/lib/classes/SAjax.php") Request.UserAgent = "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14" Request.AllowAutoRedirect = False Request.ContentType = "application/x-www-form-urlencoded" Dim postData As String = "fja=provjeraOsiguranja&data%5B%5D=03AGdBq263C18tswSs2yGcsXZ4g5LQZ8czQIJCGk7TEQnomTP3atSXk7SvGEOWYiLMdFhz62W45ATH8qDkapq1MDpYc127VRDbSGfKgDno-3mbCnoR2VuShx1PAYcZY3XHHGsvJ_heWi7nLwCVYNG3vDMT-cxfTF70JhJf7wAMx0thxcdOcw_dCC9Gi8ByeynBdEVm3AJbQpIyXpM7bX_x4QotB9AkH9wm_HUa6HeTFWfHzJQdjj2B7fkCQ9RC6pFXW7mdKnILpT1p7kZWMPIWCkUxpjJOc4i45h3EwYjhMdu4vcal1XBDObPzHgJSFvLf1GfBHIdjGVTE9Ky9ozjevnBreRPnoQc4NW_cxnLdwwbFkNiNJ88pgEs1b0-Tq04zx9MPJzgizpuNupXRxpy7tIfCHwpvjrRCfHNlsUNr6-oom0FhAJIFLZY&data%5B%5D=BM&data%5B%5D=111A&data%5B%5D=16.02.2022&data%5B%5D=hr" Request.Method = "POST" Request.ContentLength = PostData.Length Dim requestStream As Stream = Request.GetRequestStream() Dim postBytes As Byte() = Encoding.ASCII.GetBytes(PostData) requestStream.Write(postBytes, 0, postBytes.Length) requestStream.Close() Dim Response As HttpWebResponse = Request.GetResponse() reader = New StreamReader(Response.GetResponseStream()) Response.Close()
This is what i get back from FIDDLER while debugging http even thogh in HTML i get document moved 302.
Code:FD [{"type":"script","content":"$('body').addClass(\"loading\");","id":false},{"type":"script","content":"$('#insurance-result').html('');","id":false},{"type":"script","content":"alert(\"Security Error\");$('body').removeClass('loading');","id":false}] 0
Any ideas guys? Any info is greatly appreciated![]()





Reply With Quote