Skip to main content
Graduate
March 6, 2020
Question

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

  • March 6, 2020
  • 2 replies
  • 839 views

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?

    This topic has been closed for replies.

    2 replies

    Super User
    March 6, 2020

    > Where shall I search?

    https://stackoverflow.com

    Graduate
    March 6, 2020

    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?