NetTalk Central

Author Topic: Fields in HTTP header  (Read 3485 times)

Djordje Radovanovic

  • Full Member
  • ***
  • Posts: 237
    • View Profile
Fields in HTTP header
« 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


Djordje Radovanovic

  • Full Member
  • ***
  • Posts: 237
    • View Profile
Re: Fields in HTTP header
« Reply #1 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

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Fields in HTTP header
« Reply #2 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

JPMacDonald

  • Full Member
  • ***
  • Posts: 106
    • View Profile
    • Email
Re: Fields in HTTP header
« Reply #3 on: September 19, 2013, 10:09:08 AM »
Is it this one?

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

Regards
Parker

Djordje Radovanovic

  • Full Member
  • ***
  • Posts: 237
    • View Profile
Re: Fields in HTTP header
« Reply #4 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