How to send HTTP request
Wireless
No replies yet. Be the first to reply.
Join the discussion.
Wireless
No replies yet. Be the first to reply.
Join the discussion.
Share projects and connect with makers.
Joined before the site update? first.
New to WIZnet Makers?
We sent a verification link to your address. Open it to activate your account, then log in.
Accounts from this email provider are reviewed by an administrator after verification. Approval usually takes one business day.
Already have an account?
Enter your email address. If it belongs to an account, we'll send a link to set a new password. Members who joined before the site update use this to set their password.
If an account uses that address, we sent a link to set a new password. The link works once and expires in 30 minutes.
Know your password?
Need an account?
RE: How to send HTTP request
by wizdaniel ·
Hi
WizFi210 is based on a TCP layer(as known as Transport layer in TCP/IP layer) connection device. so, WizFi210 is the object in charge of performing the actual connection to the other “TCP layer” device, as well as writing requests and reading responses.
But, “CURL” that you used command is a command line tool using URL syntax(Application Layer in TCP/IP layer)
So, You have to change the request CURL syntax to TCP stream syntax like below.
[quote]
<0x1b>S0
POST /api/v1.6/variables/5689f91b76254265137e8e13/values HTTP/1.1
Content-Type: application/json
Content-Length: 13
X-Auth-Token: ZFJSStMA07BL87bNQtG8IXSPw06y330OIw9ZgUz6xSM3EVxJmdZiHCZ605Dh
Host: things.ubidots.com
{“value”: 24}
<0x1b>E[/quote]
Please copy below text and send to server