NetTalk Central

Author Topic: Strange thing about url  (Read 3715 times)

peterH

  • Sr. Member
  • ****
  • Posts: 413
    • View Profile
Strange thing about url
« on: March 02, 2011, 02:17:14 AM »
In a browse I've got an Other button that calls another 'child' browse. It's working here but not at a customer site. In my search for a solution I discovered that the url when calling the second browse is different at the two locations (but this was not really causing the problem).

Here:
http://127.0.0.1:88/webfakturaer?WEBSAGER__websager_id=30

Customer:
http://xxx.xxx.0.12:88/webfakturaer?__Referer__=http%3A//xxx.xxx.0.12%3A88/NyeSagerAcceptForm&WEBSAGER__websager_id=38

Where does the referer stuff come from. And why the difference. Is it perhaps a server setting?

Peter

Update: It does create a problem. I cannot serve pdf-files because the page cannot be found (the url has got the referer stuff in it).
« Last Edit: March 02, 2011, 11:27:33 AM by peterH »

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: Strange thing about url
« Reply #1 on: March 02, 2011, 10:10:45 PM »
Hi Peter,

The referer is being added because you are using IE on the client machine, and in some cases IE does not add the referer to Ajax calls. However it's just a parameter, so should not affect the page you are trying to fetch, webfakturaer.

Put some debugging in that procedure to see if it is called.

also test on the client with a different browser to see if that has an effect.

cheers
Bruce

peterH

  • Sr. Member
  • ****
  • Posts: 413
    • View Profile
Re: Strange thing about url
« Reply #2 on: March 03, 2011, 03:48:16 AM »
Hi Bruce,

You're absolutely right about the browsers, my fault that I didn't test that  :-[

However, I've got everything working now - but only in FF. In IE my ServeDocument page doesn't work (I'm displaying a pdf).

FF URL: .../ServeDocument?docid=188
IE URL: .../ServeDocument?_Referer_=http%3A//192.168.1.4%3A2019/SagerForm&docid=188

Anything I can do in my code to overcome this?

Thanks
Peter

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: Strange thing about url
« Reply #3 on: March 03, 2011, 06:17:52 AM »
Does it fail with IE on your development computer?

Cheers
Bruce

peterH

  • Sr. Member
  • ****
  • Posts: 413
    • View Profile
Re: Strange thing about url
« Reply #4 on: March 03, 2011, 07:10:44 AM »
Yep - seems like it chokes on the url. I get "IE cannot display the web page".

Peter

FYI: C6.3 9056 and NT5.09 (yeah, I know, dinosaur and all <g>)
« Last Edit: March 03, 2011, 07:20:00 AM by peterH »