Http request local server

hey, i am using http binding and there is some thing that i find strange. i am able to send web request through it on the web server but i am not able to send it on my local server.

this the is the url that i want to send

http://192.168.0.44:1234/msg?code=A90:SONY:12&pulse=2&repeat=1&pass=4361&out=3

and this is the items file.

Switch saitv_on_off "TV" <television> ["Switchable"] { http=">[ON:GET:http://192.168.0.44:1234/msg?code=A90:SONY:12&pulse=2&repeat=1&pass=4361&out=3] >[OFF:GET:http://192.168.0.44:1234/msg?code=A90:SONY:12&pulse=2&repeat=1&pass=4361&out=3]" }

You need to be specific.

What errors are you getting?

where should i check for errors

The openhab.log file under userdata/logs.

this the error that come while execulting this url

http://192.168.0.20:1234/msg?code=A90:SONY:12&pulse=2&repeat=1&pass=4361&out=3

2017-09-04 11:41:23.228 [DEBUG] [org.eclipse.jetty.io.SelectorManager] - Selector loop waiting on select 2017-09-04 11:41:23.294 [DEBUG] [httpclient.wire.header ] - << “HTTP/1.1 401 Unauthorized[\r][\n]” 2017-09-04 11:41:23.295 [DEBUG] [httpclient.wire.header ] - << “HTTP/1.1 401 Unauthorized[\r][\n]” 2017-09-04 11:41:23.296 [DEBUG] [httpclient.wire.header ] - << “Content-Type: text/html[\r][\n]” 2017-09-04 11:41:23.297 [DEBUG] [httpclient.wire.header ] - << “Content-Length: 12[\r][\n]” 2017-09-04 11:41:23.298 [DEBUG] [httpclient.wire.header ] - << “Connection: close[\r][\n]” 2017-09-04 11:41:23.299 [DEBUG] [httpclient.wire.header ] - << “Access-Control-Allow-Origin: *[\r][\n]” 2017-09-04 11:41:23.300 [DEBUG] [httpclient.wire.header ] - << “[\r][\n]” 2017-09-04 11:41:23.301 [DEBUG] [ommons.httpclient.HttpMethodDirector] - Authorization required 2017-09-04 11:41:23.302 [DEBUG] [ommons.httpclient.HttpMethodDirector] - Authentication challenge(s) not found 2017-09-04 11:41:23.303 [WARN ] [org.openhab.io.net.http.HttpUtil ] - Method failed: HTTP/1.1 401 Unauthorized 2017-09-04 11:41:23.304 [DEBUG] [httpclient.wire.content ] - << “Unauthorized” 2017-09-04 11:41:23.305 [DEBUG] [he.commons.httpclient.HttpMethodBase] - Should close connection in response to directive: close 2017-09-04 11:41:23.306 [DEBUG] [he.commons.httpclient.HttpConnection] - Releasing connection back to connection manager. 2017-09-04 11:41:26.147 [DEBUG] [org.eclipse.jetty.io.SelectorManager] - Selector loop woken up from select, 1/1 selected 2017-09-04 11:41:26.154 [DEBUG] [nt.io.WebSocketClientSelectorManager] - Connection Failed

First, when posting code, always put it between code fences – one row of 4 backticks (`) on top and one below. If you don’t, it’ll be unreadable.

But the problem here is obvious.

2017-09-04 11:41:23.303 [WARN ] [org.openhab.io.net.http.HttpUtil ] - Method failed: HTTP/1.1 401 Unauthorized

please explain a bit more.
how can i fix this issue. this issue doesn’t occur when i send the same http link through my pc or any mobile phone on the same network

Do you understand what this means?

HTTP/1.1 401 Unauthorized

A quick google should have already told you. The site you’re accessing requires a login. The browser on your PC handles the required authentication automatically. The HTTP binding doesn’t.

first of all the site is on the local network and it doesn’t require any login. it just replies “code sent”