0

How do you prevent HttpWatch from interpreting javascript single-line comment as call to a missing resource thus resulting in a 404 error?

annakata
  • 74,572
  • 17
  • 113
  • 180

4 Answers4

2

Perhaps you should ask the HttpWatch-guys? This has nothing to do with javascript.

KooiInc
  • 119,216
  • 31
  • 141
  • 177
1

HttpWatch doesn't interpret the javascript - it just records the HTTP traffic generated by the browser. Any 404 error that you see is merely being reported by HttpWatch not generated by it.

If you can provide a .hwl file from HttpWatch or a public URL where this occurs we'll have a look to see why the 404 is generated.

You can contact us directly at support@simtec.ltd.uk.

HttpWatchSupport
  • 2,804
  • 1
  • 17
  • 16
0

I think it thinks that the //… is intended to be a relative URI just without the scheme.

Gumbo
  • 643,351
  • 109
  • 780
  • 844
0

The original poster could be referring to the invalid URL http://:/ appearing in the HttpWatch log. This is a side effect of a commonly used technique in javascript libraries that attempt to emulate a DOMContentLoaded event in IE:

http://blog.httpwatch.com/2007/11/20/error_internet_invalid_url-httpwatch/

HttpWatchSupport
  • 2,804
  • 1
  • 17
  • 16