Forums - Https GET not able to download file

3 posts / 0 new
Last post
Https GET not able to download file
akshay.b
Join Date: 2 Aug 19
Posts: 57
Posted: Wed, 2021-03-10 05:45

Hello,

After connecting to aws server, we are not able to download files more than 7kb from AWS S3. 
We are able to download all files from browser that are more than 7kb from aws S3 bucket.
Below is the output we are getting.

- Connected device to WLAN.

Net> dhcpv4c wlan1
 
Net>
Net: DHCPv4c: IP=192.168.3.26  Subnet Mask=255.255.255.0  Gateway=192.168.3.1
dnsc start
 
Net> sntpc start
 
cert get s3-ap-south-1-amazonaws-com.pem 192.168.3.120 -s ca -t pem_ca_list
 
Net: Successfully downloaded s3-ap-south-1-amazonaws-com.pem
Net: Successfully converted and stored CA list
Net: ca is stored in NV memory
 
Net> httpc start
 
Net> httpc new -s -c ca
 
Net: HTTP client created. <client num> = 1
Net: secure  rxbuf:1460  bodybuf:3000  headerbuf:2000  timeout:20000ms
 
Net> httpc conn 1 phynart-web-test.s3.ap-south-1.amazonaws.com 443
 
Net: conn to phynart-web-test.s3.ap-south-1.amazonaws.com:443 succeeded
 
httpc get 1 demo.elf
 
Net>
Net: Response code = 200, length = 0, state = 1
Net: Response code = 200, length = 1459, state = 1
Net: Response code = 200, length = 1459, state = 1
Net: Response code = 200, length = 1459, state = 1
Net: Response code = 200, length = 1459 ,state = 1
Net: Response code = 200, length = 1459, state = 1
Net: Response code = 200, length = 503, state = 1
Net: Response code = 200, length = 0, state = -8
 
-8 state error is QAPI_NET_HTTPC_RX_ERROR_SERVER_CLOSED. How to resolve it?
 

demo.elf file size is 1100Kb and it downloades only 1.6kb (1654 bytes).

We have increased rx buffer size as well, what are we missing here?

 

Thank you,

 

Akshaay

  • Up0
  • Down0
akshay.b
Join Date: 2 Aug 19
Posts: 57
Posted: Wed, 2021-05-26 23:42

Any help or suggestion will be appreciated .

  • Up0
  • Down0
raja_pedada
Profile picture
Join Date: 18 Jun 18
Location: San Jose
Posts: 300
Posted: Thu, 2021-05-27 22:16

Can you try to download file locally from ssl server to check the issue with QCA4020 ?
Also, check the sniffer if you are seeing any TCP RST packets with alert 21 from Server.

However, can you help to set "net profile set 1" before http connection and downloading the file to check if this resolves.
Assuming you are using the latest release.

  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.