Not connecting to a url with slashes "/"

Apr 18, 2013 at 1:04 AM
Edited Apr 18, 2013 at 1:17 AM
Hello guys, first of all let me say that you are doing a great job with this driver.
I'm trying to connect to an endpoint with this format "168.62.20.37/v1/auth" but I'm receiving the following error message: "CONNECT FAIL", bellow the trace:

CellularRadio : SENT: AT+CIPSTART="TCP","168.62.20.37/v1/auth","80"
CellularRadio : <AT+CIPSTART="TCP","168.62.20.37/v1/auth","80"
OK>
RadioState: 5
RadioState: 5
CellularRadio : <
STATE: IP STATUS
CONNECT FAIL>
CellularRadio : SENT DATA: +++
CellularRadio : <+++>
CellularRadio : <AT+CIPCLOSE

If I try to connect to the IP only, the connection is established correctly, but I need to make POST to the complete url, any clues ?

Thanks
Coordinator
Apr 18, 2013 at 2:31 AM
Edited Apr 18, 2013 at 2:32 AM
@sebarenzi,
In order to establish a connection you must call Connect() against a server (IP). You cannot connect to IP/uri as that identifies a resource on a server, but not the server itself.
When you have connected to the server at "IP" you should be able to POST to "IP/uri".
Does this help?
Apr 18, 2013 at 2:59 AM
ByronR, thanks for the quick reply. That for sure will help. I'm not figuring out how to post to a specific uri, the SendData function in CellularRadioManager class only receives 1 parameter used for the data. Am I missing something ?

Thanks
Coordinator
Apr 18, 2013 at 1:16 PM
@sebarenzi, you need to send valid HTTP, see this discussion
Apr 18, 2013 at 3:14 PM
excelent, thank you ! This will work for me.