I Need A Example For Http Post

This is a discussion on I Need A Example For Http Post within the C Programming forums, part of the General Programming Boards category; Who can give me an example for http protocal. the request: if their's a url: http://server//script.pl and the script script.pl ...

  1. #1
    Registered User
    Join Date
    Oct 2001
    Posts
    10

    I Need A Example For Http Post

    Who can give me an example for http protocal.

    the request:
    if their's a url: http://server//script.pl
    and the script script.pl need two parameters:
    name and article.

    How can I post these two parameters to the url?

    I need the example script.
    post below or email me .

    ----
    thx a lot for ur help

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,588
    To be honest, I think you need to find an HTML message board, not a C/C++ programming board.

  3. #3
    Registered User
    Join Date
    Oct 2001
    Posts
    10

    re:

    Fisrt sorry for my poor english.

    Second , my meaning is :

    the server's perl script I have written.
    And I wanna a c/c++ script to communicat with the perl script on the server with http protocol and user the post method to do it.

    ok, could anyone help me ?

  4. #4
    0x01
    Join Date
    Sep 2001
    Posts
    88

    Try asking your question here, its a very useful site ( good layout too ) .

    http://www.tutorialforums.com

    Btw- If anyone has any ideas for this site post'em. ( maybe something you want on there?? )
    *note, i am not the owner of the site, but i do have connections.

  5. #5
    Just one more wrong move. -KEN-'s Avatar
    Join Date
    Aug 2001
    Posts
    3,230
    Well you'd have to use standard winsock, and you'd have to know the variable names that get passed...:

    http://server//script.pl?var1=Hi&var2=Wow

  6. #6
    Registered User
    Join Date
    Oct 2001
    Posts
    10

    re:

    yes , I know the parametres.
    But how to writ ethe winsock?
    give me an example ok?
    plsease user the http protocol's post method.
    thx.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Help (Trying to post message)
    By mrkm in forum A Brief History of Cprogramming.com
    Replies: 4
    Last Post: 10-06-2003, 04:05 PM
  2. Post your Best Text Adventure
    By Joe100 in forum Game Programming
    Replies: 3
    Last Post: 08-15-2003, 05:47 PM
  3. Auto POST
    By vasanth in forum A Brief History of Cprogramming.com
    Replies: 10
    Last Post: 06-07-2003, 10:42 AM
  4. post update
    By iain in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 08-12-2001, 10:47 AM

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