You are here: Re: set cookie in nusoap web service, IE behaves diff than Firefox « PHP Programming Language « IT news, forums, messages
Re: set cookie in nusoap web service, IE behaves diff than Firefox

Posted by Colin McKinnon on 05/10/05 11:34

Johnny wrote:

> Searched on google for any info relating to this before posting here but
> found none.
>
> I set up a web service using nusoap on apache php 4.3.8 on windows with
> error_reporting = E_ALL and had that service set a cookie in the client
> browser as the first output.
> Works fine in IE6 and the service returns the state of the cookie in the
> client browser but in firefox 1.0 the exact same service gives a notice
> error about an undefined variable like so:
>
> <b>Notice</b>: Undefined index: Content-Type in <b>i:program filesapache
> groupapachehtdocs nusoaplib
> nusoap.php</b> on line <b>2468</b>
>
> took a look at line 2468 in nusoap.php and as the notice says it's about
> the content type header:
>
> 2468 if(strpos($this->headers['Content-Type'],'=')){

I've studiously avoided SOAP, but reading what you've said here it doesn't
appear to be a SOAP related issue. If it works with one browser but not
another, it rather implies that $this->headers refers to the headers sent
in the request. I don't think 'Content-Type' is required in the request.
Try quietening the error reporting (any output before you try to set a
cookie will flush the headers and therefore make it impossible to set the
cookie).

HTH

C.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация