Login  
Search All Forums
Dart Home | PowerTCP Web for ActiveX | Custom Development Reply | PowerTCP Web for ActiveX Topics | Forums   
AuthorForum: PowerTCP Web for ActiveX
Topic: plain header
User964

Posts: 4
Member Since: 01/03/01
posted January 3, 2001 9:19 AM

hi,
I try to post a XML data string to a server using webtool.

standard the header is set to "Content-Type: application/x-www-form-urlencoded"
I want this changed to plain text.
(How) can it be done?

Also i'd like to know how i can send the string secure through http/s.

thanks in advance,
Martijn
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted January 3, 2001 9:32 AM


You'll have to use a Dartstrings object in the Request Header parameter and set the Content-Type to what you want. The samples show how to modify headers. Search for the word Header in the source.

If the URL contains "https://" the transmission will be secure.

User964

Posts: 4
Member Since: 01/03/01
posted January 3, 2001 10:14 AM

Thank you for the quick response,

But i cannot find any examples for changing the header content to my needs.
(i want to POST plain/text using standard iso-8859-1 encoding to a server)

coud you please give me some extra information?

Thank you,

Martijn

Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted January 3, 2001 10:21 AM


In the Post sample, you would change:

  Http1.Post GetPostString, Header, Data
  
To:
  Dim Header As New DartStrings
  Header.Add "Content-Type: text/plain"
  Http1.Post GetPostString, Header, Data
  
Reply | PowerTCP Web for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX