Jump to content
yamaco

Adding extra headers in an HTTPS request

Recommended Posts

Greetings,

let me ask a tiny question about using Extra headers in HTTPSCli component

of Overbyte suite.

Our business partner needs to add following line into request header:

name=soapaction, value=http://nsess.public.cz/erms/v_02_00/DokumentZalozeni

I added this line into Extraheaders property but partner still says that

such request is bad because does not contain this mandatory line.

Here is a piece of request from partner's server (my added line is not

displayed, really):

 

Request headers:

2019-04-01 14:28:38,640[https-jsse-nio-8445-exec-9][TRACE cz.vera.wns.web.WSWebAction]   ContentType=text/xml

2019-04-01 14:28:38,640[https-jsse-nio-8445-exec-9][TRACE cz.vera.wns.web.WSWebAction]   CharacterEncoding=null

2019-04-01 14:28:38,640[https-jsse-nio-8445-exec-9][TRACE cz.vera.wns.web.WSWebAction]   Method=POST

2019-04-01 14:28:38,640[https-jsse-nio-8445-exec-9][TRACE cz.vera.wns.web.WSWebAction]   header: name=accept, value=text/xml

2019-04-01 14:28:38,640[https-jsse-nio-8445-exec-9][TRACE cz.vera.wns.web.WSWebAction]   header: name=content-type, value=text/xml

2019-04-01 14:28:38,640[https-jsse-nio-8445-exec-9][TRACE cz.vera.wns.web.WSWebAction]   header: name=user-agent, value=Mozilla/4.0

2019-04-01 14:28:38,640[https-jsse-nio-8445-exec-9][TRACEcz.vera.wns.web.WSWebAction]   header: name=host, value=servers.vera.cz:8445

 

2019-04-01 14:28:38,640[https-jsse-nio-8445-exec-9][TRACE

cz.vera.wns.web.WSWebAction]   header: name=content-length, value=1516

2019-04-01 14:28:38,640[https-jsse-nio-8445-exec-9][TRACE cz.vera.wns.web.WSWebAction] End of Request headers

Don't you know what am I wrong in? Does ExtraHeaders property work properly?

Thanks!

Share this post


Link to post
1 hour ago, yamaco said:

Our business partner needs to add following line into request header:

name=soapaction, value=http://nsess.public.cz/erms/v_02_00/DokumentZalozeni

I added this line into Extraheaders property

 

Exactly what did you add?  It should have been:

soapaction: http://nsess.public.cz/erms/v_02_00/DokumentZalozeni

 

Angus

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×