NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Djordje Radovanovic on September 19, 2013, 06:58:53 AM

Title: Fields in HTTP header
Post by: Djordje Radovanovic on September 19, 2013, 06:58:53 AM
Hi all,

in documentation I receive for connecting to Revenue Authority it says:

79.   To identify which MCV is the sender the following fields must be provided in the http header:
a.   TMN - MCV serial number;
b.   TMM – MCV hardware version;
c.   TSW – MCV software version;

How on earth I could set those http header fields?

Best regards,
Djordje Radovanovic

Title: Re: Fields in HTTP header
Post by: Djordje Radovanovic on September 19, 2013, 08:02:40 AM
I found in NetWww.clw this:

NetWebClient.GetHeaderField PROCEDURE  (string p_Header,long p_count=1) ! Declare Procedure 3

Is there something like SetHeaderField PROCEDURE and if there is no such procedure how to fake it?

Best regareds,

Djordje Radovanovic
Title: Re: Fields in HTTP header
Post by: Bruce on September 19, 2013, 09:56:34 AM
There's a property, .customHeader I think, into which you can put anything you like.

Cheers
Bruce
Title: Re: Fields in HTTP header
Post by: JPMacDonald on September 19, 2013, 10:09:08 AM
Is it this one?

p_web.HeaderDetails.HTTP = 'MyHeader: Wahtever:'

Regards
Parker
Title: Re: Fields in HTTP header
Post by: Djordje Radovanovic on September 19, 2013, 12:04:06 PM
customHeader is what I tried but it was unsuccessful cause I used "=" but JPMacDonald open my eyes with ":".

Now it works and I received different error.  ;D.

Thanks JPMacDonald and Bruce for answers.

Best regards,

Djordje Radovanovic