Sim800 gprs connection and send string to web server using get request

I want to transmit sensor data to a web server and also button state as string to the server using sim800 I have tried writing my own code but it’s not stable it transmit at times and sometimes it won’t. Pls help me out.looking forward to hearing from you.

You need to debug why it doesnt work sometimes. You need to handle all errors and failures with retries. You can observe whats happening in the terminal by looking at AT commands and their responses to find out where its failing.