0

I'm doing a an ajax request to the following path:

http://example.com/dir/ajax/index.php
http://example.com/dir/ajax/index.php=123

that works. But when I'm calling http://example.com/dir/ajax/index.php=http://example.net/ the request is answered withan error 403 forbidden,

Whats wrong with this call?

schmijos
  • 8,114
  • 3
  • 50
  • 58
user3129040
  • 167
  • 1
  • 3
  • 12
  • 1. make a proper url: `http://example.com/dir/ajax/index.php?http://example.net/` Use `urlencode` on the embedded url. – Daniel W. Aug 07 '14 at 09:29

1 Answers1

1

Your URL seems to be malformed. Have a look at the typical structure of a query string. You're not specifying the name of the query parameter to be parsed by the server. A sample of a valid URL would be

http://example.com/dir/ajax/index.php?query_name=http://example.net/

or even

http://example.com/dir/ajax/index.php?http://example.net/

If you're interested in more details about query strings, you should have a look at the standards

I think in your case you don't have to distinguish between these two standards. If you're interested in building a query string automatically from javascript, have a look at this stackoverflow post.

Community
  • 1
  • 1
schmijos
  • 8,114
  • 3
  • 50
  • 58
  • Tks you for reply, But ago on vps old, this very good.. I think my vhost or nginx config error. – user3129040 Aug 07 '14 at 10:29
  • If you find out, what the error was, please post it as an answer. And please accept answers to your questions if they are solved. See your other question: http://stackoverflow.com/questions/20740426/start-upload-all-in-jquery-file-upload-blueimp – schmijos Aug 07 '14 at 10:42