cancel
Showing results for 
Search instead for 
Did you mean: 

How send the GET variable to an external URL from the code on the NUCLEO-F767ZI MCU via the Ethernet cable?

O. Mz. - 7
Associate III

I could start and run the HTTPd LWIP web-server with the CGI and SSI on the F767ZI board all right. The web-server works fine.

I also need something else. I need to call a URL on an external web-server, like this one: http://external-server.com/?v=12 .

On this external server there is a PHP script, which receives and handles the $_GET['v'] variable.

I need to call the URL from the code, without opening an HTML file on the F767ZI's web-server.

How can it be done? Where shall I search?

2 REPLIES 2
Pavel A.
Evangelist III

> Where shall I search?

https://stackoverflow.com

O. Mz. - 7
Associate III

Thank you for your reply. Perhaps, you could suggest some keywords, to point me in the right direction? Because, I still cannot find the answer.

Basically, I need to make a HTTP connection to the external server from the NUCLEO-F767ZI board. For example, I can send some values to the computer via the serial port with the HAL_UART_Transmit(...) function easily. Perhaps, I can use one of the HAL_ETH_... functions for this? Or Netconn API? What is the correct way to do it?