Re: set cookie in nusoap web service, IE behaves diff than Firefox



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.
.



Relevant Pages

  • Re: Multiple sites
    ... >> distinguish them by using host headers. ... When IIS ... browser. ... >> request. ...
    (microsoft.public.inetserver.iis.security)
  • Re: How to share session with IE
    ... my browser module if necessary. ... program can load the cookies from your real browser's cookie store ... "need to login" condition, and react accordingly. ... Another option instead of making your program run through a series of clicks and text inputs, which is difficult to program, is to browse the html source until you find the name of the script that processes the login, and use python to request the page with the necessary form fields encoded in the request. ...
    (comp.lang.python)
  • Re: XmlHttpRequest not loading latest version of xml
    ... >> browser and re-open the browser. ... handle as a cacherequest) and a reasonable expiration date in the ... Either this way or the simpler one: Neither in ASP nor in PHP it is ... required HTTP headers can be included right into the resource requested, ...
    (comp.lang.javascript)
  • Re: Whats the Best Way to Mimic an HTTP Request?
    ... make the request from a regular browser. ... bunch of additional headers when it makes the request. ...
    (comp.lang.ruby)
  • Re: A link in an email that, on click, sends the headerinfo to a server
    ... They follow the link, which opens their browser, which visits the page. ... The cookie will ... login each time I reach it via a mail message link. ... There is no way to "copy" the mail headers from the mail message into the ...
    (comp.lang.php)