Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Real time embedded FreeRTOS mailing list 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem TCP & FAT Training




Loading

Starting point for doing GET and POST Request

Posted by bkpatel on July 9, 2015

Hi,

I have a request to get me started on how to send POST and GET request to server from board which uses Texas Instrument's processor. My challenge is to make this work on both HTTP and HTTPS. I have some data on the board, on which FreeRTOS code is running, to be sent to some external server or get some data from this server. I have implemented HTTP GET and POST on Non-RTOS using LWIP and tcp APIs. But it is hard to extend support for HTTPS on this and not able to proceed further. I read some FreeRTOS forums and found Socket APIs can do POST and GET request. Will these socket APIs be able to do encryption and decryption if HTTPS used? Are there any example or link there which can help me to get started for both HTTP and HTTPS?

Thanks, Bhavesh


Starting point for doing GET and POST Request

Posted by rtel on July 9, 2015

There is a demo on the following link that creates secure sockets using WolfSSL (CyaSSL), for simplicity it uses the Windows TCP/IP stack though rather than an embedded stack, as it is supposed to be demonstrating the TLS/SSL code rather than the TCP stack. I know WolfSSL use it with lwIP regularly though:

http://www.freertos.org/FreeRTOS-Plus/CyaSSL/FreeRTOSCyaSSLExample.shtml

As far as GET and POST go I think that is just a matter of generating the correct outgoing URLs (with parameters) and parsing the parameter of the incoming URLs.

Regards.


Starting point for doing GET and POST Request

Posted by bkpatel on August 18, 2015

Hi, I treid to change the code to implement the same using LwIP instead of TLS. I am using Texas Instrument's Tiva C series (EK-1294XL) board for development using CCS v6.1 I included CyaSSL 3,3,0 after recommnedation from TI's forum. After integrating the same when I compiled I am getting error for not able to get the functions defined in cyassl/ssl.h files like CyaSSLInit(), CyaSSLCTX_new() and all other functions. Attched is the code and screen shot of the image. Not sure why compilation error is coming eventhough reference are given. Does anyone know why this error is coming?

Thanks, Bhavesh

Attachments

freertos_demo.zip (1839599 bytes)

Starting point for doing GET and POST Request

Posted by bkpatel on August 18, 2015

Attching screenshot

Created function InitialiseCyaSSL() in lwip_task.c which is having some cyaSSL functions.

Attachments

freeRTOS.JPG (57023 bytes)

Starting point for doing GET and POST Request

Posted by rtel on August 18, 2015

Sorry - it is not clear - are you having a problem building a project we have provided, in which we can assist? Or are you integrating third party code obtained from elsewhere, into a project you created yourself, and having problem getting the third party code to build, in which case I don't think your question is FreeRTOS related.

Your issue might be a mismatch between WolfSSL versions and documentation, as the WolfSSL API function names changed to reflect the re-branding from CyaSSL to WolfSSL.

Regards.


Starting point for doing GET and POST Request

Posted by bkpatel on August 18, 2015

I have created a project using Code Composure Studio from TI. And after integrating CyaSSL-3.3.0 into ARM Compiler includes path I am not able to build the same. The screen shot I provided states the errors generated during build. Have you come across this kind of problem? And any help to make build successful will be helpful.

Thanks, Bhavesh


Starting point for doing GET and POST Request

Posted by edwards3 on August 18, 2015

So its not a FreeRTOS question.


[ Back to the top ]    [ About FreeRTOS ]    [ Sitemap ]    [ ]




Copyright (C) 2004-2010 Richard Barry. Copyright (C) 2010-2016 Real Time Engineers Ltd.
Any and all data, files, source code, html content and documentation included in the FreeRTOSTM distribution or available on this site are the exclusive property of Real Time Engineers Ltd.. See the files license.txt (included in the distribution) and this copyright notice for more information. FreeRTOSTM and FreeRTOS.orgTM are trade marks of Real Time Engineers Ltd.

Latest News:

FreeRTOS V9.0.0 is now available for download.


Free TCP/IP and file system demos for the RTOS


Sponsored Links

⇓ Now With No Code Size Limit! ⇓
⇑ Free Download Without Registering ⇑


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Renesas Electronics Gold Alliance RTOS Partner.jpg

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Atmel RTOS partner supporting ARM Cortex-M3 and AVR32 microcontrollers

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Xilinx Microblaze and Zynq partner

Silicon Labs low power RTOS partner

Altera RTOS partner for Nios II and Cortex-A9 SoC

Freescale Alliance RTOS Member supporting ARM and ColdFire microcontrollers

Infineon ARM Cortex-M microcontrollers

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

Cypress RTOS partner supporting ARM Cortex-M3

Fujitsu RTOS partner supporting ARM Cortex-M3 and FM3

Microsemi (previously Actel) RTOS partner supporting ARM Cortex-M3

Atollic Partner

IAR Partner

Keil ARM Partner

Embedded Artists