Jump to content
43oh

Recommended Posts

Hi spirilis,

last days I was trying very hard to send a HTTP REST API call to a server via https.

The GET request was well formated and worked well from my PC. But when I sent the same request from my C3200 launchpad I got a "bad request" error 400 after a successful connect.

I started with your example code and adaped it with my host and URL.

Finally I found out that it only works when I split my URL with several parameters, in multiple client.print commands. It seams that there is someting wrong with the length of a URL. Maybe the URL will be trucated after an certain amount characters because I iterated the number of parameters. With only two parameters it worked (server replies with "wrong command") but when I added the 3rd parameter I've got an error 400.

 

Can anybody have a look at this?

 

wayfarer

Link to post
Share on other sites

Hi spirilis,

last days I was trying very hard to send a HTTP REST API call to a server via https.

The GET request was well formated and worked well from my PC. But when I sent the same request from my C3200 launchpad I got a "bad request" error 400 after a successful connect.

I started with your example code and adaped it with my host and URL.

Finally I found out that it only works when I split my URL with several parameters, in multiple client.print commands. It seams that there is someting wrong with the length of a URL. Maybe the URL will be trucated after an certain amount characters because I iterated the number of parameters. With only two parameters it worked (server replies with "wrong command") but when I added the 3rd parameter I've got an error 400.

 

Can anybody have a look at this?

 

wayfarer

Sure, please provide a code example that I can work with for debugging.

 

Sent from my Galaxy Note II with Tapatalk 4

Link to post
Share on other sites
  • 10 months later...
  • 3 weeks later...

I want to connect to a  local server through SSL,I am currently using XAMPP with my self signed certificate but the CC3200 launchpad is not connecting with the local server,what might be the problem?I saw the certificate generated by XAMPP and it is of version 1,it is the problem of the version?If so kindly suggest me a local server for my apllication.

 

Thank You.

Link to post
Share on other sites
  • 1 year later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...