This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC3235MODSF: cc3235 - HTTP POST - SL_NETAPP_REQUEST_HTTP_POST never hit

Part Number: CC3235MODSF
Other Parts Discussed in Thread: CC3235SF, UNIFLASH

CC3235 is working in STA mode connected to an AP and I'm trying out the POST requests with a simple HTML page from a PC/chrome on the same network.

Made sure that there are not REST API keywords in the form, and form points to its own html file (index.html).

When pressing on the submit button of the form I see in wireshark the POST HTTP packet sent "Content-Type: application/x-www-form-urlencoded\r\n" but I'm not even hitting the brakepoint in "SimpleLinkNetAppRequestEventHandler" switch case branch "SL_NETAPP_REQUEST_HTTP_POST".

What did I miss?

  • Added prints to handler and it seems that the following HTML code 

    <form method="POST" name="SPS Configuration" action="myFORMwithPOST/">... </form>

    resulting in: "POST /sps/ HTTP/1.1\r\n .... " TCP packet

    Gets detected as a GET message by the device:

    [netapp] GET metaLenTotal=427 payloadLen=105
    * GET metaType=1 metaLen=8 total=416 HTTP/1.1
    * GET metaType=2 metaLen=5 total=408 myFORMwithPOST/
    * GET metaType=19 metaLen=10 total=395 10.0.0.101

  • Hi,

    Please refer to the local_OTA example which accepts both GET and POST requests.

    There might be an issue with your SimpleLinkNetAppRequestEventHandler implementation.

    Br,

    Kobi

  • Again: I have an HTML page with a FORM containing a POST method.

    I do not hit a breakpoint in "SimpleLinkNetAppRequestEventHandler" on a switch case "switch( pNetAppRequest->AppId )" SL_NETAPP_REQUEST_HTTP_POST.

    I did not implement at the moment ANYTHING. The problem is there is no report about the HTTP POST captured.

    Even bigger issue is that in wireshark I see the HTTP POST but on device side I receive the GET request.

    I do not understand how on earth this could be an issue with or related to myhandler.

    Wireshark log:

    Hypertext Transfer Protocol
        POST /myFORMwithPOST/ HTTP/1.1\r\n
        Host: 10.0.0.101\r\n
        Connection: keep-alive\r\n
        Content-Length: 105\r\n
        Cache-Control: max-age=0\r\n
        Upgrade-Insecure-Requests: 1\r\n
        Origin: http://10.0.0.101\r\n
        Content-Type: application/x-www-form-urlencoded\r\n
        User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.102 Safari/537.36\r\n
        Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9\r\n
        Referer: 10.0.0.101/index.html\r\n
        Accept-Encoding: gzip, deflate\r\n
        Accept-Language: en-US,en;q=0.9\r\n
        \r\n
        [Full request URI: http://10.0.0.101/myFORMwithPOST/]
        [HTTP request 1/1]
        File Data: 105 bytes

    AppHandler printouts:

    [netapp] SimpleLinkNetAppRequestEventHandler appId=1
    [netapp] GET metaLenTotal=439 payloadLen=105
     * GET metaType=1 metaLen=8 total=428 HTTP/1.1
     * GET metaType=2 metaLen=16 total=409 /myFORMwithPOST/
     * GET metaType=19 metaLen=10 total=396 10.0.0.101
     * GET metaType=16 metaLen=10 total=383 keep-alive
     * GET metaType=23 metaLen=17 total=363 http://10.0.0.101
     * GET metaType=5 metaLen=33 total=327 application/x-www-form-urlencoded
     * GET metaType=8 metaLen=115 total=209 Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.102 Safari/537.36
     * GET metaType=13 metaLen=135 total=71 text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange     ;v=b3;q=0.9
     * GET metaType=12 metaLen=28 total=40 http://10.0.0.101/index.html
     * GET metaType=20 metaLen=13 total=24 gzip, deflate
     * GET metaType=21 metaLen=14 total=7 en-US,en;q=0.9
     * GET metaType=4 metaLen=4 total=0 i
    

  • Having this code for printing out the appHandler:

    void SimpleLinkNetAppRequestEventHandler(SlNetAppRequest_t *pNetAppRequest,
                                             SlNetAppResponse_t *pNetAppResponse)
    {
        uint8_t* metaPtr;
        uint8_t  metaType;
        uint16_t metaLen;
        int32_t metaLenTotal;
        uint32_t i;
        /* Unused in this application */
        UART_PRINT("[netapp] SimpleLinkNetAppRequestEventHandler appId=%d \r\n", pNetAppRequest->AppId);
    
        switch( pNetAppRequest->AppId )
        {
        case SL_NETAPP_REQUEST_HTTP_GET:
            metaLenTotal = (int32_t)pNetAppRequest->requestData.MetadataLen;
    
            UART_PRINT("[netapp] GET metaLenTotal=%d payloadLen=%d \r\n", metaLenTotal, pNetAppRequest->requestData.PayloadLen);
    
            metaPtr = pNetAppRequest->requestData.pMetadata;
    
            do
            {
                metaType = *metaPtr;           metaPtr += 1;
                metaLen = *(uint16_t*)metaPtr; metaPtr += 2;
                //metaPtr += metaLen;
    
                metaLenTotal -= (metaLen+3);
    
                if( metaLen )
                {
                    UART_PRINT(" * GET metaType=%d metaLen=%d total=%d ", metaType, metaLen, metaLenTotal);
                    for(i = 0; i < metaLen; i ++ )
                    {
                        UART_PRINT("%c", *metaPtr);
                        metaPtr++;
                    }
                }
    
                UART_PRINT("\r\n");
            }
            while( metaLenTotal > 0 );
    
            UART_PRINT(" * payload:");
            for( i = 0; i < pNetAppRequest->requestData.PayloadLen; i++ )
            {
                UART_PRINT("%c", pNetAppRequest->requestData.pPayload[i]);
            }
    
            UART_PRINT("\r\n");
    
            pNetAppResponse->Status = SL_NETAPP_HTTP_RESPONSE_200_OK;
            pNetAppResponse->ResponseData.pMetadata = 0;
            pNetAppResponse->ResponseData.MetadataLen = 0;
            pNetAppResponse->ResponseData.pPayload = NULL;
            pNetAppResponse->ResponseData.PayloadLen = 0;
    
            break;
    
        case SL_NETAPP_REQUEST_HTTP_POST:
            metaLenTotal = (int32_t)pNetAppRequest->requestData.MetadataLen;
    
            UART_PRINT("[netapp] POST metaLen=%d payloadLen=%d\r\n", metaLen, pNetAppRequest->requestData.PayloadLen);
    
            metaPtr = pNetAppRequest->requestData.pMetadata;
    
            do
            {
                metaType = *metaPtr;           metaPtr += 1;
                metaLen = *(uint16_t*)metaPtr; metaPtr += 2;
    
                metaLenTotal -= (metaLen+3);
    
                if( metaLen )
                {
                    UART_PRINT(" * POST metaType=%d metaLen=%d ", metaType, metaLen);
                    for(i = 0; i < metaLen; i ++ )
                    {
                        UART_PRINT("%c", *metaPtr);
                        metaPtr++;
                    }
                }
    
                UART_PRINT("\r\n");
            }
            while( metaLenTotal > 0 );
    
            metaPtr = malloc(128);
    
            pNetAppResponse->Status = SL_NETAPP_HTTP_RESPONSE_302_MOVED_TEMPORARILY;
            pNetAppResponse->ResponseData.pMetadata = metaPtr;
            pNetAppResponse->ResponseData.MetadataLen = 128;
            pNetAppResponse->ResponseData.pPayload = NULL;
            pNetAppResponse->ResponseData.PayloadLen = 0;
    
            *metaPtr = SL_NETAPP_REQUEST_METADATA_TYPE_HTTP_LOCATION;
            metaPtr++;
            *(uint16_t*)metaPtr = 128;
            metaPtr += 2u;
            strcpy(metaPtr, "Location: 10.0.0.101:80/index.html\r\n\r\n");
    
            break;
    
        case SL_NETAPP_REQUEST_HTTP_PUT:
            UART_PRINT("[netapp] SL_NETAPP_REQUEST_HTTP_PUT\r\n");
            break;
    
        case SL_NETAPP_REQUEST_HTTP_DELETE:
            UART_PRINT("[netapp] SL_NETAPP_REQUEST_HTTP_DELETE\r\n");
            break;
    
        default:
            break;
        }
    }

    POST branch never reached. it seems it is wrongly translated and handed over as a GET request 

  • Do you get pNetAppRequest->AppId == 1 (SL_NETAPP_REQUEST_HTTP_GET)?

    If yes, please provide NWP logs (see chapter 20.1 in https://www.ti.com/lit/ug/swru455l/swru455l.pdf).

    Also worth to check the local OTA example using the sniffer logs you can compare the POST packets formats (assuming the original local OTA code works for you).

    Br,

    Kobi

  • I just posted the code im using with output from UART as well and reported that instead of POST request i get a GET request over this callback/handler function and your question is "if i get SL_NETAPP..._GET"?

    Please read carefully everything I wrote down. If doubts, questions arises give it another try.

    Please try to reproduce it on your side, the issue is very simple. You have an www/index.html  with a form POST method pointing to /myFormWithPOST/ location, HIT the send button and capture the traffic with wireshark while checking your UART output what the NWP reported.

    Let me know if that works on your side. Till then I will look into getting the NWP logs.

  • Could you please identify me on this pinning the PIN_62? I found no reference to it.

  • Hi,

    Pin 62 of QFN (GPIO7) is connected to pin 52 of MOD. Please see table 7.2.1 at datasheet.

    btw ... if you have a not related question, please always open new thread.

    Jan

  • I guess the CC31xx PIN_62 would mean PIN_52 in case of CC3235MODSF

  • Hi,

    It means pin 62 of CC3235SF QFN = pin 52 of CC3235MODSF.

    CC31xx are another devices and are not related to your case.

    Jan

  • Thank you. I beleive it is related when I'm asked to send a debug log and according to the description it does not match the device type I had to enter when opening a forum question.

  • 5444.teraterm.log
    	1n����
    �Z`$
    \<		v"	w"	x"	y"	�
    	"	
    "	"	c"	�!cc	�!7}
    	�!yz�!y�zW!�A	�d�		I	,�	;	'(!#B�12�1?<
    |@21n����
    �Z`$
    \<		v"	w"	x"	y"	�
    	"	
    "	"	c"	�!cc	�!8}
    	�!yz�!y�zW!�A'	�d�		I	,�			'(!#B�12�1?<
    |@(		POL)1)]"()"Z"^11v����
    �Z`$
    \<		v"	w"
    
    	x"
    	y"	�
    	"	
    "	"	c"	�!cc	�!:
    	�!yz�!y�zW!�A	�d�		I	,�		'(!#B�12�1?<
    |@	POL)1)]"()"Z"^11~����
    �Z`$
    \<		v"	w"	x"	y"	�
    	"	
    "	"	c"	�!cc	�!;
    
    	�!yz�!y�zW!�A'	�d�		I	,�		'(!#B�12�1?<
    |@1~����
    �Z`$
    \<		v"	w"
    	x"	y"	�
    	"	
    "	"	c"	�!cc	�!<
    	�!yz�!y�zW!�A'	�d�		I	,�	'	'(!#B�12�1?<
    |@
    	POL)1)]"()"Z"^11����
    �Z`$
    \<		v"	w"	x"	y"	�
    	"	
    "	"	c"	�!cc	�!=
    	�!yz�!y�zW!�A'	�d�		I	,�	1	'(!#B�12�1?<
    |@
    �)]"()"Z"^	"()"Z"^"!
    � -�-1{�(�
    ��
    �	9�
    
    �	-�-1{�( Lc�����
    �
    !'�/sys/certstore.lst�J�
    �
    -�J-�J�-	�J���
    "
    �*��1
    �
    		�
    �*� `
    �DE}
    �
    *�""��e�'
    �*� �'�C�1��
    	��
    �"
    ��'�/sys/servicepack.ucf�`�
    - 2c B!'�/sys/ucf_signatures.bin�Ql-�Ql-�Ql4-�Ql4T-	�Ql�
    �!'�/sys/servicepack.ucf�`�
    -�`!-�`-�`x-�`p
    �
    �
    �
    �
    �
    �
    �
    �
    �
    �
    �
    �
    �
    ��*	�!'�/sys/mode.cfg��I-��I-��I4-��I4-	��I��-�`z	��Ҹٸ�
    �*�@ *�Q �*�	 x**�.	 
    �
    �
    ��
    �ִִ-	�`-�2c
    ��
    ?)�`aaA	9	�)�-1{�(	!'�/sys/certstore.lst	�J	�
    	�
    )�J	�)�J�)	�J��	�'�/sys/fips.cfg	�:�We([e(`aaA			!'�/sys/mdmpcfg.ini	�I�ye(	!'�/sys/pmcfg.ini	I�)I�	�)I�4)I�4
    )	I�	�>	a"(b)
    �k	�	�'�/sys/servicepack.ucf	�`	�
    ) 2c B	!'�/sys/ucf_signatures.bin	�Ql)�Ql	�)�Ql4)�Ql4T)	�Ql�	�	!'�/sys/servicepack.ucf	�`	�
    )�`!	�)�`)�`x)�`p	�	�	�	�	�	�	�	�)�`\ 
    	�)�
    1	!'�/sys/ipcfg.ini	��)��	�)��4)��4�)	�ϭ$	!'�/sys/mode.cfg	��I)��I	�)��I4)��I4)	��I	��	Q
    	�
    	�1`  �1` 	 @M1``V H1`�k l1`{ �
    1`� � 1`T' `1w@  )	`�	�	
    	�	� 	f	�	
    	g6!	�
    	�	
    	!'�/sys/devname.cfg	c)c	�)c4)c4b)	c	�			
    
    	
    
    	�	�	�	�	�)�
    G�	�			�	�	�		!'�/sys/phybg.cal	�^)�^	�	�	!'�/sys/phya.cal	r$0(r	!'�/sys/phypwr.cal	e�A)e�A	�	�	�	�	�	P
    	P
    	P
    	P
    	P
    	P
     	P
    @	P
    P
    S
    �	
    	�	�		
    	�)
    �1	!'�/sys/macadd.bin	�qye(	5	V�	2$'�e		
    	�	!'�/sys/naptlv.bin	2<ye(D)�`|	�)�`��)�`�	�	�)�`\ 	�	��	�)�`` �,)�`h ,	�	�),	�)�`pL	�p)�`xLp	�)	�`)�2c	�	�)�^	�	�)p	�)�^�	�	�
    )�^
    h	5%)	�^�t	�	�	�	�)	�)e�A�8)e�A8)	e�A�8	�	�	�)(�8		� 	�	
    -		
    )	
    -����	
    -
    l 	L	L	
    		�	-
    	�'�/sys/rxfltr.ini	���We([e(	�'�/sys/rxfltr.ini	���We([e(�A	�'�/sys/rxfltr.ini	���We([e(�A�A"�A�A�A�A�A�A�B�B			!'�/sys/mdns.cfg	[\ye(B�B��B��A�A�A�B��	�
    )C
    	
    /		!)`'�/sys/p2p.cfg	oye(		�	
    /:A	�		Q%�,)gy?	�
    	<	)	�	0	!'�/sys/date_time.cfg	
    >(ye(	3�)0
    	
    11
    7				=	=	�		(
    	�	
    )2�		!'�/sys/httpsrv.cfg!aBB�
    	3)'�!aBB�
    )'�).!aBB�
    )
    ):))')
    )?4), de��), ����)), ,-��), ��)	
    4)*
    )
    r1`aaA	s	6
    	)		
    5)W$exV.\�	!)
    i'�/sys/stacfg.ini	F
    	TU)TU	�)TU4)TU4)	TU	��	K
    	J#	�#	!'�/sys/pref.net	�ye(	!'�/tmp/chanhist.tbl	�?)�?	�)�?P1A:�)�?P
    )	�?�H?(aR�SS1"	{	
    8	"		�
    	
    !'�/sys/mode.cfg	��I)�
    )��I	�)���I4)���I4)	��I	��6�
    )	�
    )F
    	�)F
    4)F
    4)	s6s)	s�!�)]"()"	Z")	F
    ��	�	
    		
     			
    		
     			�	�P	�P:	 		)'y�)]"()"	Z"�!	6s	)	s!
    � -�-1{�(�
    ��
    �	9�
    
    �	-�-1{�( Lc�����
    �
    !'�/sys/certstore.lst�J�
    �
    -�J-�J�-	�J���"
    �*��1
    �
    		�
    �*� `
    �DE}
    �
    *�""��e�'
    �*� �'�C�1��
    	��
    �"
    ��'�/sys/servicepack.ucf�`�
    - 2c B!'�/sys/ucf_signatures.bin�Ql-�Ql-�Ql4-�Ql4T-	�Ql�
    �!'�/sys/servicepack.ucf�`�
    -�`!-�`-�`x-�`p
    �
    �
    �
    �
    �
    �
    �
    �
    �
    �
    �
    �
    �
    ��*	�!'�/sys/mode.cfg��I-��I-��I4-��I4-	��I��-�`z	��Ҹٸ�
    �*�@ *�Q �*�	 x**�.	 
    �
    �
    ��	�ִִ-	�`-�2c
    ��
    k)�`aaA	9	�)�-1{�(	!'�/sys/certstore.lst	�J	�
    	�
    )�J	�)�J�)	�J��	�'�/sys/fips.cfg	�:�We([e(`aaA			!'�/sys/mdmpcfg.ini	�I�ye(	!'�/sys/pmcfg.ini	I�)I�	�)I�4)I�4
    )	I�	�>	a"(b)
    ?	�	�'�/sys/servicepack.ucf	�`	�
    ) 2c B	!'�/sys/ucf_signatures.bin	�Ql)�Ql	�)�Ql4)�Ql4T)	�Ql�	�	!'�/sys/servicepack.ucf	�`	�
    )�`!	�)�`)�`x)�`p	�	�	�	�	�	�	�	�)�`\ 
    	�)�
    1	!'�/sys/ipcfg.ini	��)��	�)��4)��4�)	�ϭ$	!'�/sys/mode.cfg	��I)��I	�)��I4)��I4)	��I	��	Q
    	�
    	�1`  �1` 	 @M1``V H1`�k l1`{ �
    1`� � 1`T' `1w@  )	`�	�	
    	�	� 	f	�	
    	g6!	�
    	�	
    	!'�/sys/devname.cfg	c)c	�)c4)c4b)	c	�			
    
    	
    
    	�	�	�	�	�)�
    G�	�			�	�	�		!'�/sys/phybg.cal	�^)�^	�	�	!'�/sys/phya.cal	r$0(r	!'�/sys/phypwr.cal	e�A)e�A	�	�	�	�	�	P
    	P
    	P
    	P
    	P
    	P
     	P
    @	P
    P
    S
    �	
    	�	�		
    	�)
    �1	!'�/sys/macadd.bin	�qye(	5	V�	2$'�e		
    	�	!'�/sys/naptlv.bin	2<ye(D)�`|	�)�`��)�`�	�	�)�`\ 	�	��	�)�`` �,)�`h ,	�	�),	�)�`pL	�p)�`xLp	�)	�`)�2c	�	�)�^	�	�)p	�)�^�	�	�
    )�^
    h	5%)	�^�t	�	�	�	�)	�)e�A�8)e�A8)	e�A�8	�	�	�)(�8		� 	�	
    -		
    )	
    -����	
    -
    l 	L	L	
    		�	-
    	�'�/sys/rxfltr.ini	���We([e(	�'�/sys/rxfltr.ini	���We([e(�A	�'�/sys/rxfltr.ini	���We([e(�A�A"�A�A�A�A�A�A�B�B			!'�/sys/mdns.cfg	[\ye(B�B��B��A�A�A�B��	�
    )C
    	
    /		!)`'�/sys/p2p.cfg	oye(		�	
    /:A	�		Q%�,)gy?	�
    	<	)	�	0	!'�/sys/date_time.cfg	
    >(ye(	3�)0
    	
    11
    7				=	=	�		(
    	�	
    )2�		!'�/sys/httpsrv.cfg!aBB�
    	3)'�!aBB�
    )'�).!aBB�
    )
    ):))')
    )?4), de��), ����)), ,-��), ��)	
    4)*
    )
    r1`aaA	s	6
    	)		
    5)W$exV.\�	!)
    i'�/sys/stacfg.ini	F
    	TU)TU	�)TU4)TU4)	TU	��	K
    	J#	�#	!'�/sys/pref.net	�ye(	!'�/tmp/chanhist.tbl	�?)�?	�)�?P1A:x#H)�?P
    )	�?�H?(aR�SS1"	{	
    8	"		�
    !'�/sys/mode.cfg	��I)�
    )��I	�)���I4)���I4)	��I	��)*
    6�
    )	�
    )F
    	�)F
    4)F
    4)	
    	
    	6
    )	
    )	
    	J#	�#	!'�/sys/stacfg.ini	TU)TU	�)TU4)TU4)	TU	��SS	�
    )	
    )	F
    ��	�	
    		
     			
    		
     			�	�P	�P:	 			
    B
    !NB�1�x������������1���������<����1�����2��������	�"APOL	�I
    qx(a!`G?!!"!1#AAPOLLO_T	T	�	�)A	6
    )	
    )	B�	�'�/www/sps_login.cfg	�h	 *6B$$)	B$)	<�	!'�/www/sps_login.cfg	�h	�h	�6<$)	<$)	@�)�h*6@$*.)	@$)	=�)	�h	�*6=$)	=$	.$APOL	r	)"++)/#����	0#APOL(aAPOL$a1%APOL+>
    
    	=	z	.$APOL	H
    		.$APOL	r	)"++)/#����	0#APOL(aAPOL$a1%APOL+>
    
    	=	
    	r&&	)"00!1APOL+ 1APOL+ (a4�?"�>
    
    	=	�		8#APOL		L$APOL	M
    4�"�!L$�!L$
    7!`G	q	
     	�	
    	
    	�	
    	�	�			�	�	>
    
    	=	 $)��)��	r		#	�)V�* ;	T	r	)",,	
    >
    
    	=)]"()"	Z"	) 	�	!L��k!	�)E	�	�	!)"$���|
    <)#����))	
    )
    )
    ?"q	r""	)"7>
    
    	=)
    )=	))0
    )1 	�	!	r!!>
    
    	=	r  >
    
    	=	r>
    
    	=	,	r	)">
    
    	=9
    7!`G!L$�!L$�!L$gX��), -.X��!L$k	!`G!L		 #y���)�	 y!L$�		*?"�	r""	)"!L$k	!L�	!L$�	 #c���)�	 c!a>
    
    	=!aBB�
    		!`G!a!aBB�
    	�	*>
    
    	=	5		VA
    "	�"
    <�APOL6L)			L$APOL	M
    � !�`�	!'�/sys/dhcp.bin	y)y	�)y4)y4)	y��!�`�!� 1�@� 1��e
    1�<
    |�
    
     1�
    n�1��	�O
    )w
    
    )$e
    ���
    
    	$
    e!�` )!1`
    	�
    6%e
    )	%(a!?	!'�/tmp/table.arp	l�%)l�%	�)l�%4)l�%4)	l�%��1	@d
    �1�d
    ��hL1	@
    1�
    �<
    |�!`G	), 
    ���), gh���), .4���), 
    ���), hi���), 4.���!L$�		r�A)		N$
    '	!	)
    ) 	�	)	�	�	-
    	G$APOL	H$LO_T	I$EST_	J$���|	K
    <	�
    )
    F"B�)]"()"Z"^!
    '�/tmp/chanhist.tbl	�?)3)�?	�)�?P
    �
    ')
    )�?P
    A)-)	�?�H)2
    
    )/
    �	(
    	)w
    
    )$e
    ���
    
    	$
    e!�` 1�`�
    	r!�A1@
    @81�b
    �<
    |�	
    )]"()"Z"^)]"()"Z"^	.$APOL))]"()"Z"^
    �)]"()"Z"^	.$APOL)]"()"Z"^			�
    	�
    	"()"Z"^		
    �)]"()"Z"^)	<�	!'�ota.dat	�ye(6<$	$			"()"Z"^		11Y����
    �Z`$
    \<		v"	w"Q%	x"	y"	�
    	"	
    ""�c"�	�!_^	�!
    	�!yz�!y�zW!�A�	�c�		I	,�			'(!#B�12�1?<
    |@�11Y����
    �Z`$
    \<		v"	w"
    	x"	y"	�
    	"	
    "	"	c"	�!ac	�!
    	�!yz�!y�zW!�A	�d�		I	,�		'(!#B�12�1?<
    |@�	.$APOL)1)]"()"Z"^11a����
    �Z`$
    \<		v"	w"	x"	y"	�
    	"	
    "	"	c"	�!bc	�!
    	�!yz�!y�zW!�A'	�d�		I	,�		'(!#B�12�1?<
    |@�
    �)]"()"Z"^
    �)]"()"Z"^)]"()"Z"^)]"()"Z"^0@!�`,,		
    		
     				�	�	�	�	�
    	�
    	�	�!	�s	�	�
    	�	�	�]	��ѷ]6x )	x0@!�`,,!�`,,)	B�	�'�/www/sps_login.cfg	�h	 *6B$$)	B$)	<�	!'�/www/sps_login.cfg	�h)�h	�6<$)	<$)	@�)�h*6@$*.)	@$)	=�)	�h	�*6=$)	=$)	<�	!'�/www/sps_login.cfg	�h)�)�h	�6<$)	<$)	A�)��h6A$)	A$)	=�)	�h	�6=$)	=$)	x)T!x.�.	�	�	�	
    �)]"()"Z"^)]"()"Z"^
    �)]"()"Z"^0@!�`,,	)]"()"Z"^0@!�`,,	P		
    		
     			0@!�`,,!�`,,	
    �)]"()"Z"^	"()"Z"^11����
    �Z`$
    \<		v"	w")+	x"
    	y"
    	�
    "p	
    ""p	c"
    	�!bb	�!(0	�!yz�!y�zW!�A,	�b�		I	,�	'	'(!#B�12�1?<
    |@

  • Any update on this?

  • Hi,

    You need to wait for answer from TI side. I don't have tool for decoding NWP log. But it looks that your log file have correct format.

    Jan

  • What service pack are you using?

  • sp: simplelink_cc32xx_sdk_4_20_00_07

    compiler ide: CCS Studio Version: 10.1.0.00010 

    module: CC3235MODSF

  • I was asking about the service pack (which is part of the sdk and should be installed with uniflash).

    If you are using SDK 4_20_00_07, I guess your service pack is 4.7.0.3 (see under tools\cc32xx_tools\servicepack-cc3x35).

    Please you didn't program this SP, it can explain the issue.

    BTW in your sniffer log, i see the POST request but i don't see the GET (for getting the original html page that contains the form).

    Can you explain how this works? 

    Br,

    Kobi 

  • Yes, sorry SP is installed from that SDK.

    Explanation why there is no GET request: I recorded the UART log when I clicked on the from SEND button (so POST is sent).

    Would you please be so kind and try it out on your side? I think the issue is fairly simple to reproduce.

    You just need an HTML page with FORM and a POST request. You will see if your callback reports GET or POST.

  • Ok. 

    I'll test this and let you know.

  • You are checking (in the "switch") the "pNetAppRequest->AppId" which is always 1 (SL_NETAPP_HTTP_SERVER_ID).

    You should instead check the "pNetAppRequest->Type" which sets the request method. 

    For a POST, the "Type" will be 2 (SL_NETAPP_REQUEST_HTTP_POST).

    Br,

    Kobi

  • Aaaah. Thanks.

    Misunderstanding from my side, didn't know this appid is the same as the NETAPP ID.

    So first of all I need to check for HTTP Server appid before doing here anything because other APPs can also report. I thought this is pure for HTTP server and as AppId is the first field  offered by editor i slipped over checking if there other fields.

    Sounds trivial now. It is quite hard to figure out based on netapp.h what variable represents what type and what enumeration values they might have.