How to add element to HTTP Header when calling Web Service f

Posted by jarekf on 22-Sep-2011 08:12

How to add HTTP headers in OE10.2B like:

Accept-Charset: iso-8859-2

Accept: text/*

POST http://xxxxx:8080/WS HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: text/xml;charset=UTF-8
SOAPAction: "TEST"
Accept-Charset: iso-8859-2
Accept: text/*
User-Agent: Jakarta Commons-HttpClient/3.1
Content-Length: 527
Authorization: Basic U0tBTjpTS0FO
Host: xxxxx:8080
<?xml version="1.0" encoding="utf-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.....

All Replies

Posted by jquerijero on 11-Oct-2011 17:01

This is how I do it;

DEFINE VARIABLE request AS System.Net.HttpWebRequest NO-UNDO.

. . .

request:Headers:Add("SomeHeader", "SomeValue").

This thread is closed