How to make an HTTP connection?

Hi

I am having trouble connecting to a website with my AiThinker A6 GSM/GPRS board.

So far I have managed to connect to http://maker.ifttt.com with the board, but the connection appears to break almost instantly. The specific website I am trying to reach is http://maker.ifttt.com/trigger/trap_door_closed/with/key/********* (I replaced my specific key with asterisks for privacy). I do not understand TCP protocol, but from my research it seems like the first step is to establish a connection to maker.ifttt.com, then do a HTTP GET to reach the subdirectories.

In summary, I think I have two problems:

  1. Connection seems to break instantly.
  2. Assuming I can get a good connection, I don't know how to navigate to a "subdirectory" of a website.

Thanks for any help you can give with either issue!

  1. Assuming I can get a good connection, I don't know how to navigate to a "subdirectory" of a website.

You don't "navigate to a subdirectory". You need to make a GET request that contains the relative path to the file you are trying to execute. So, you need to know what that path is, which you do not discover at run time.

I know you don't discover the path at runtime, I have it as a constant string in my program. I just don't understand how to do a GET request or how it works. Do you know of any resources which explain this well? I didn't have much luck on Google.

Thanks