[solved]Problem Reading SoftwareSerial

Hi,

I'm using a SIM900 gprs shield, and I'm sending a http request to a sever (my computer) with AT commands, and I want to read the http responde which contains a data that I want to read.

The problem is I can't read it because my serial's buffer doesn't works well.
When I send the AT command after getting empty the serial buffer:
Serial2.println("ATcommand");
delay(5000);
I try to read

if(Serial2.available()){
while(Serial2.available()>0){

response.concat(Serial2.read());
}
}

The content of response is the inital part of the http request:
GET/ url/HTT1.1
Host: host

And I would like to save the http response to parse it.

The problem is I can't read it because my serial's buffer doesn't works well.

That is utter nonsense. The buffer works just fine. There may be nothing in the buffer, because there is nothing sending data to the appropriate serial pins, but that is NOT the buffer's fault.

The content of response is the inital part of the http request

How can there be something in response of the buffer is not working?

I suspect that you need to take your question, and snippets, to http://snippets-r-us.com.

PaulS:
That is utter nonsense. The buffer works just fine. There may be nothing in the buffer, because there is nothing sending data to the appropriate serial pins, but that is NOT the buffer's fault.
How can there be something in response of the buffer is not working?

I suspect that you need to take your question, and snippets, to http://snippets-r-us.com.

Thanks for giving a reply, I achieved it in myself way , the problems as you said it wasn't the buffer, the problem was that i started to read de buffer but not all the data was received, so I waited for all of them.