NetTalk Central

Author Topic: WS inserts "HTTP/1.1 200 OK ....."  (Read 3170 times)

Niels Larsen

  • Sr. Member
  • ****
  • Posts: 431
    • View Profile
    • Email
WS inserts "HTTP/1.1 200 OK ....."
« on: August 05, 2012, 07:56:45 AM »
Hi

I have a NetWepPage genereting a page.
Before the </head> I'm caling a routine inserting some scripts.
Put when i view the source in my browse this comes right after my script:

HTTP/1.1 200 OK
Date: Sun, 05 Aug 2012 15:45:50 GMT
Server: NetTalk-WebServer/6.38
Expires: Sat, 06 Aug 2011 15:45:50 GMT
Content-Type: text/html
Cache-Control: no-store, no-cache, must-revalidate, private,post-check=0, pre-check=0, max-age=0
Pragma: no-cache
Connection: close


NetWebPage - type = HTML

I am sure that there is a good explanation, I just can't see it :-(

/Niels

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: WS inserts "HTTP/1.1 200 OK ....."
« Reply #1 on: August 05, 2012, 10:59:34 PM »
it's hard to comment without an example.

But I'm guessing you're doing some sort of Send (do SendPacket) before the page header is sent.

cheers
Bruce

Niels Larsen

  • Sr. Member
  • ****
  • Posts: 431
    • View Profile
    • Email
Re: WS inserts "HTTP/1.1 200 OK ....."
« Reply #2 on: August 06, 2012, 03:59:06 PM »
Hi Bruce

Your guess was right. Didn't know that the header should be sent in one package. Now I know ;-)
Thanks for your help!

/Niels