Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Network.Request https or http ?
Started by prographodeveloper Jun 11 2019 08:37 AM

1 reply to this topic
network request http https

Best Answer prographodeveloper , 11 June 2019 - 08:39 AM

changed localhost for 127.0.0.1 and worked.

[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

prographodeveloper

[GLOBAL: userInfoPane.html]
prographodeveloper
  • Contributor

  • 298 posts
  • Corona SDK

Why does an http request attempt to make an https connection?

Isn't SSL all about https?

I've never seen this before, but then I've never tried to call an http server running on localhost from simulator before...

Am I going insane?
 

    network.request( "http://localhost:5002/getinstructions", "GET", function(event)             
            print ("HELLO")
            
            if ( event.isError ) then
                U.error("ERROR in getinstructions call: "..event.response)
                return
            end...
HELLO
ERROR in getinstructions call: An SSL error has occurred and a secure connection to the server cannot be made.


[TOPIC: post.html]
#2

prographodeveloper

[GLOBAL: userInfoPane.html]
prographodeveloper
  • Contributor

  • 298 posts
  • Corona SDK

  Best Answer

changed localhost for 127.0.0.1 and worked.


  • roaminggamer likes this


[topic_controls]
[/topic_controls]

Also tagged with one or more of these keywords: network, request, http, https