WIZnet Developer Forum

How i connect to a website

Hello dear members,
i am a Student in Germany and i work currently with a WizFi250 Modul.
I want to connect to a Website, i have seid many examples im Internet but when i do the same examples, this can not work.
Please can you help me ?, sorry for my English language, i can´t speak very well.
the Problem is when i try to send a web request with "AT+SSEND=0,20 " , i have the answer [0,20] and then “[error]”. How can I write the AT-Command to “GET / HTTP/1.1\r\n\r\n” and "AT+SSEND=0,20 " ?
For 3 hours i have tried but i have nothing. My code is under

AT+WSET=0,3Wireless-Modem-d361
[OK]
AT+WSEC=0,40318877
[OK]
AT+WJOIN
Joining : 3Wireless-Modem-d361
Successfully joined : 3Wireless-Modem-d361

[Link-Up Event]
IP Addr : 192.168.1.100
Gateway : 192.168.1.1
[OK]
AT+FDNS=WWW.wikon.de,3000
91.199.162.182
[OK]
AT+SCON=O,TCS,91.199.162.182 ,80,0
[OK]
AT+SSEND=0,20
[0,20]
[ERROR]

[DISCONNECT 0]

Monique

hello monique.

  1. www.wikon.de site over HTTPS connection and regular port is ‘443’ instead of ‘80 port’.
  2. if you receive the message ‘error’ after sending data. You have to check the http method format (GET /HTTP/1.1\r\n\r\n).
    AT+SSEND=0,20, parameter 20 is length of sending data. But the data length you are sent is '18 (GET / HTTP/1.1\r\n\r\n).

Copyright © 2017 WIZnet Co., Ltd. All Rights Reserved.