posting data to webpage...

This is a discussion on posting data to webpage... within the C++ Programming forums, part of the General Programming Boards category; i got something like this but it doesn't seem to work, any ideas??? PHP Code: int main ( int argc ,  char  ...

  1. #1
    Registered User
    Join Date
    Jul 2002
    Posts
    16

    posting data to webpage...

    i got something like this but it doesn't seem to work, any ideas???
    PHP Code:
    int main(int argcchar *argv[])
    {
        
    HTTP_Request *= new HTTP_Request("sms2.idea.pl"80);

        
    s->AddHeader("Host","sms2.idea.pl");

        
    Headers *form = new Headers();
        
    form->Add("LANGUAGE","pl");
        
    form->Add("NETWORK","smsc1");
        
    form->Add("DELIVERY_TIME","0");
        
    form->Add("SENDER","egwegw");
        
    form->Add("RECIPIENT","d***h");
        
    form->Add("VALIDITY_PERIOD","4");
        
    form->Add("NOTIFICATION_FLAG","");
        
    form->Add("NOTIFICATION_ADDRESS","email");
        
    form->Add("SHORT_MESSAGE","tak sobie testuje");
        
    form->Add("SUBMIT","Wyslij");

        
    delete s->PostData("/sendsms.asp", *form);
        
    delete form;
        
    delete s;
      return 
    0;

    how to make something to post data form on page...

  2. #2
    Registered User
    Join Date
    Feb 2002
    Posts
    114
    the way i have done it is not to post a form but to build the requeststring (like "\sendsms.asp?recipent=12345&msg=hello")and then request it. I donšt know why you want to build a form before you submit it... but maybe I got the question wrong??

  3. #3
    Registered User
    Join Date
    Jul 2002
    Posts
    16
    yes exacly to build the requeststring (like "\sendsms.asp?recipent=12345&msg=hello")and then request it. maybe my question was wrong...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 48
    Last Post: 09-26-2008, 04:45 AM
  2. singly linked circular list
    By DarkDot in forum C++ Programming
    Replies: 0
    Last Post: 04-24-2007, 09:55 PM
  3. simultaneously waiting for data on FIFO and UDP using select call
    By yogesh3073 in forum Networking/Device Communication
    Replies: 2
    Last Post: 01-05-2007, 09:53 AM
  4. Binary Tree, couple questions
    By scoobasean in forum C Programming
    Replies: 3
    Last Post: 03-12-2005, 09:09 PM
  5. binary tree of processes
    By gregulator in forum C Programming
    Replies: 1
    Last Post: 02-28-2005, 12:59 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21