| Dart Home | PowerTCP Sockets for .NET | Custom Development | Reply | PowerTCP Sockets for .NET (Secure and Standard) Topics | Forums |
| Author | Forum: PowerTCP Sockets for .NET (Secure and Standard) Topic: PowerTCP Sockets POST samples |
| phildee1 From: Elizabethtown, PA USA Posts: 2 Member Since: 07/23/03 |
posted July 23, 2003 2:19 PM Hello, I am trying to POST data using the PowerTCP component. Do you have any sample code that does this? I.E. I've setup and used the stock quote example successfully, but that uses the GET command. Thanks! Sincerely, Phil D. |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted July 23, 2003 2:47 PM It's almost the same, you just use "POST" instead of "GET", then format the header and body correctly. There are probably some examples on this forum. Just search for "POST /" and you should get some. |
| phildee1 From: Elizabethtown, PA USA Posts: 2 Member Since: 07/23/03 |
posted July 23, 2003 3:15 PM Hello Tony, Thanks for your reply. I've found several examples that use the DartWeb.Http class to POST data. Specifically I am trying to use the Sockets.TCP class. Do you have any examples that refer specifically to this? Thanks! Sincerely, Phil D. |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted July 23, 2003 3:25 PM I don't have EXACTLY what you want but I can try to explain it. First you have to figure out what you need to post. Data? Variables? If variables they are included in the URL, like the ones on this forum. See all the values after the question mark? If you need to post data, you have to include a "Content-Length" header that tells the server how many bytes are in the body. If you have trouble getting it working the way you want, get one of our support packages and someone can write a sample for you. |
| Reply | PowerTCP Sockets for .NET (Secure and Standard) Topics | Forums |
This site is powered by
PowerTCP WebServer for ActiveX
|