Add url for API

 
Hello
To contact the API service. I add the address to:
tools, option, export advisor,

Enables the checkbox: allow web request for listed URL, I add the address click OK and everything is canceled. See attachments


Files:
add.png  14 kb
 
Hello
I am waiting for an answer.
I need to add a service request code.
 And the interface does not allow adding an address.
 
Hello you can not usethat port please use port 80 for webrequest and 443 or use a different method. 
 
Marco vd Heijden:
Hello you can not usethat port please use port 80 for webrequest and 443 or use a different method. 

thank you for the answer.

What does different function mean?

Can you give an example
 
Search - MQL5.community
Search - MQL5.community
  • www.mql5.com
Searching is based on morphology and is insensitive to case. All letters, no matter of their case, will be processed as lowercase. By default, our search engine shows pages, that...
 
Marco vd Heijden:
Hello you can not usethat port please use port 80 for webrequest and 443 or use a different method. 
I'm trying to figure out your answer, it's unclear to me.
Suppose the server assigned the address 80 to the api service,

This is not the address to which the customer is requesting service.


Besides if mql allows http addresses if they were added to  tools, option, export advisor.....

Why the port 80 address will be approved

thank

 

Please read the documentation.

To use the WebRequest() function, add the addresses of the required servers in the list of allowed URLs in the "Expert Advisors" tab of the "Options" window.

Server port is automatically selected on the basis of the specified protocol - 80 for "http://" and 443 for "https://".

 
Marco vd Heijden:

Please read the documentation.

To use the WebRequest() function, add the addresses of the required servers in the list of allowed URLs in the "Expert Advisors" tab of the "Options" window.

יציאת שרת נבחרת אוטומטית על בסיס הפרוטוקול שצוין - 80 עבור "http: //" ו- 443 עבור "https: //".

thank

I changed the address to port 80 and still falls on 4014 in debugging

the code:

 string url= "http://localhost:80/api/Manage"; 

   ResetLastError(); 

   int res=WebRequest("GET",url,cookie,NULL,500,post,0,result,headers); 

the listener:

info: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[0]

      User profile is available. Using 'C:\Users\USER\AppData\Local\ASP.NET\DataProtection-Keys' as key repository and Windows DPAPI to encrypt keys at rest.

warn: Microsoft.AspNetCore.Server.HttpSys.MessagePump[0]

      Overriding address(es) 'https://localhost:5001, http://localhost:5000'. Binding to endpoints added to UrlPrefixes instead.

info: Microsoft.AspNetCore.Server.HttpSys.HttpSysListener[0]

      Start

info: Microsoft.AspNetCore.Server.HttpSys.HttpSysListener[0]

      Listening on prefix: http://localhost:80/

Hosting environment: Development

Content root path: C:\Users\USER\source\repos\Asset\AssetApiMql

Now listening on: http://localhost:80/

Application started. Press Ctrl+C to shut down.


 

Server port is automatically selected on the basis of the specified protocol -

you can not change it.

 

RivkaMinHahar:

I did not understand .

I built a api and changed the address to port 80 using HTTP: SYS.

///

Hosting environment: Development

Content root path: C:\Users\USER\source\repos\Asset\AssetApiMql

Now listening on: http://localhost:80/

Application started. Press Ctrl+C to shut down.

/////


Files:
api.png  56 kb
api1.png  88 kb
Reason: