Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

GET / HTTP/1.1 with cipsend returns nothing !

Status
Not open for further replies.

litham

Newbie level 6
Joined
Jun 17, 2009
Messages
13
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,376
at+cipsend

Hi all,

I can make connection to a server using sim300c/gprs. (I get CONNECT OK status)
But, I have some trouble.
when I want to get data from google , with at+cipsend command, I recieve nothing.

these are the commande I use

at+cipshut
SHUT OK
at+cstt="m2minternet"
OK
at+ciicr
OK
at+cifsr
10.230.44.165

at+cipstart="tcp","209.85.229.104","80"
OK

CONNECT OK
at+cipsend
> GET / HTTP/1.1
SEND OK



Also, when I use APPE to create file. it's only says send ok, and I can't find this file.

best regards, thanks
 

cipsend get

You need to include the HTTP header data: (>> indicates what you send to GSM, << indicates what GSM sends to you)
>> AT+CIPSEND - Issue Send Command
<< > - wait for module to return'>' to indicate it's ready to receive data
>> GET / HTTP/1.1 - Send data - this example is an HTTP request for the default page
>> Host: www.google.com
>> Connection: Keep-Alive
>> Accept: */*
>> Accept-Language: en-us
>>
>> CTL-Z
<< data from server returned - Server will return data here
Each of those line need a CRLF after them. You also need the "blank" line (two CRLF pairs together) to indicate the end of the header.
 

at+cipsend get

wait wait wait, if you look to what I did: it s the same thing!

when I type <ENTER> key after cipsend I got this '>'
then I type GET/HTTP/1.1
followd by <Ctrl+z>
Is that true?
 

ใช้at+cipsend

No, they are not the same thing. You are not sending a "well formed" header, so when the Google server receives your request it is discarding it - without responding to you.

At the very least, you need to terminate the "GET/HTTP/1.1" with 2 CR/LF pairs. The blank line indicates the end-of-header. However, I would advise you to include all of the lines I showed in my previous post, or you may experience problems with some other servers.

If you don't want to keep to connection alive you can omit that line
 

send ok at+cipsend

Thanks, GSM man the CR/LF pairs can be done with both <Ctrl+ENTER> keys.

I must type <Ctrl+ENTER> key after each line.
and it works,

My next step is to send user and pass over gprs, I try this:
Code:
220 (vsFTPd 2.0.1)                  
at+cipsend          
> USER pep.edbox103                   


SEND OK       
331 Please specify the password.                                
530 Please login with USER and PASS.                                    
at+cipsend          
> PASS pervaya              

SEND OK       
230 Login successful.  //                   
at+cipsend          
> APPE blabla.txt                 

SEND OK
500 Unknown command. // why?
at+cipsend
> mkd FFTTPP

SEND OK
257 "/FFTTPP" created // OK the directory was created. 
AT+CIPSEND
> cwd FFTTPP

SEND OK
500 Unknown command. // ??

what command do I need to create, write file and create directory ?
Thanks

Added after 2 hours 30 minutes:

I foud it, I can create file after etering passiv mode with PASV.

yep
thanks
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top