Support Center

Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Unable to connect. Getting access denied in response

Sathish May 30, 2014 09:16AM EEST

{StatusCode: 401, ReasonPhrase: 'Unauthorized', Version: 1.1, Content: System.Net.Http.StreamContent, Headers:
Connection: keep-alive
WWW-Authenticate: Basic realm='Searchly'
Content-Length: 45
Content-Type: text/plain; charset=UTF-8

this is part of my code. The above error show in the result part
Dim client As New HttpClient()
Dim result = client.PostAsync(RootUrl, New FormUrlEncodedContent(New Dictionary(Of String, String)() From {{"json", strJSOnString}}))
Dim response As String = result.Result.Content.ReadAsStringAsync().Result

1 Community Answers

Best Answer
Ferhat Sobay May 30, 2014 09:14PM EEST

Searchly uses http-basic authentication. So as our connection urls "https://site:key@url please ensure client sets credentials properly.

if this fails please try alternative url at your dashboard.


Post Your Public Answer

Your name (required)
Your email address (required)
Answer (required)
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
Invalid characters found