Due to Certain parameters page not loading - php

It's pleasure to be here; hoping a good support from all.
I am developing this application using personal FrameWork (CITS: construesol.com/our-solutions/cits-framework.html)
Facing the following issue, and not sure if this is due to some server or issue in my framework.
This Works: wrosc.commbuss.com/index.php
This gives Page not found error:
wrosc.commbuss.com/index.php?login__ga=GA1.2.1438238513.1446927241&
login_ck_login_id_20=1&
login_ck_login_language_20=en_us&
login_default_horde_view=auto&
login_PHPSESSID=evnvh60rcd8j37b64ajbb02vi7&
login_feacc482788c1ab9a7c03bcd5b19c90e=CookieEnabledClient
These are the additional paramaters passed from my machine; may be due to some tools I am using with my browser; like FireBug
&login__ga=GA1.2.1438238513.1446927241&
login_ck_login_id_20=1&
login_ck_login_language_20=en_us&
login_default_horde_view=auto&
login_PHPSESSID=evnvh60rcd8j37b64ajbb02vi7&
login_feacc482788c1ab9a7c03bcd5b19c90e=CookieEnabledClient
I am running a loop for $_REQUEST to check if some parameters are passed to redirect user to proper module (Parameters received: This is the feature of the framework).
The problem is only with this machine (and all developer) and not on "Non-Developer" machines; As we think this is due to some tools we are using with browser (e.g. FireBug)
NOTE: **** "login_" in front of each parameter is performed by the framework

Resolved the bug: Issue was with Framework, handled using urlencode
***But still those parameters are passed.

Related

PHP & Angular Rest Calls, Cross Origin Issue

I am developing my app using Angularjs for front end and php mysql for backend. in php i am using slim framework. Things went smoothly while i was developing on my local machine and testing on localhost. However when I uploaded the code to a free shared hosting, all my rest calls stopped workng and started getting the following error.
XMLHttpRequest cannot load http://error404.myhostingprovider.com/?. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://myfreehosingdomain.com' is therefore not allowed access.
Can anybody please tell me what is going on.
In short, websites have to be careful about including content from other websites, because that content may be undesired / evil or changed en-route. Websites are generally responsible for whitelisting cross-domain requests they are expecting to make for the sake of the client's security.
I would suggest that you read up on a Browser Content Security Policy: https://en.wikipedia.org/wiki/Content_Security_Policy.
Then take a look at how to handle this case in the slim framework. This might be a good starting point:
http://help.slimframework.com/discussions/problems/810-no-subject
In my case this was because I was being redirected to an erro404 page outside my domain. The actual error was due to other factors (no mysql native driver in my case).

Deploying Tweetr AS3 site on ISS without cURL

I've been developing a site for a client that uses the Tweetr API to post messages to a user's Twitter account. It has now been discovered that the destination server is running IIS, so no mod_rewrite for the Tweetr proxy. Also cURL is not available, which prevents the proxy from forwarding requests.
The lack of mod_rewrite can be got around, but I need an alternative to using cURL that doesn't require anything not included in a very basic PHP 5.2 install. I'm considering trying to recreate the proxy functionality with jQuery AJAX, but at the same time that seems like a very lengthy solution. Can anyone point me in the right direction here?
I think that this might be what you're looking for.

How to find out if an XML-RPC server is working?

I have a huge Ping list and want to clean it.
Using PHP I have already removed duplicated, checked for 404s, redirects etc.
I was wondering what I could send to the URLs to see if they are actually functioning and open for submissions?
There is the XML-RPC Introspection de facto standard which you could try first. If the server doesn't offer introspection you could just try to send a randomly generated method call. If it is a working XML-RPC Server you should get back a fault object.

What are the right uses for cURL?

I have already heard about the curl library, and that I get interest about...
and as i read that there are many uses for it, can you provide me with some
Are there any security problems with it?
one of the many useful features of curl is to interact with web pages, which means that you can send and receive http request and manipulate the data. which means you can login to web sites and actually send commands as if you where interacting from your web browser.
i found a very good web page titled 10 awesome things to do with curl. it's at http://www.catswhocode.com/blog/10-awesome-things-to-do-with-curl
One of it's big use cases is for automating activities such as getting content from another websites by the application. It can also be used to post data to another website and download files via FTP or HTTP. In other words it allows your application or script to act as a user accessing a website as they would do browsing manually.
There are no inherent security problems with it but it should be used appropriately, e.g. use https where required.
cURL Features
It's for spamming comment forms. ;)
cURL is great for working with APIs, especially when you need to POST data. I've heard that it's quicker to use file_get_contents() for basic GET requests (e.g. grabbing an RSS feed that doesn't require authentication), but I haven't tried myself.
If you're using it in a publicly distributed script, such as a WordPress plugin, be sure to check for it with function_exists('curl_open'), as some hosts don't install it...
In addition to the uses suggested in the other answers, I find it quite useful for testing web-service calls. Especially on *nix servers where I can't install other tools and want to test the connection to a 3rd party webservice (ensuring network connectivity / firewall rules etc.) in advance of installing the actual application that will be communicating with the web-services. That way if there are problems, the usual response of 'something must be wrong with your application' can be avoided and I can focus on diagnosing the network / other issues that are preventing the connection from being made.
It certainly can simplify simple programs you need to write that require higher level protocols for communication.
I do recall a contractor, however, attempting to use it with a high load Apache web server module and it was simply too heavy-weight for that particular application.

Zend_Uri_Http generates "inet_pton(): Unrecognized address" error

In our application, the backend is accessed via Zend_XmlRpc. In the backend, I'm using Zend_Http_Client together with Zend_Http_Client_Adapter_Curl to connect to another web service over HTTPS.
During unit tests, everything works as expected and the remote service is accessible. But when the frontend connects via Zend_XmlRpc to the backend and causes the backend to do the exact same thing like the unit tests do, I get the following error:
inet_pton(): Unrecognized address test.example.com#0 (url changed)
This is caused by Zend_Validate_Ip->isValid('test.example.com').
The only difference I can spot is the additional frontend-backend-connection which is also using Zend components for communicating. Everything else is the same.
Anybody any idea?
Looks like it might be a resolver issue in the server and zf isn't catching it beforehand. It's getting a hostname where it should be getting an IP address (obviously), and it can't convert a string to a binary IP address
It was an error in Zend_Validate that was fixed with release 1.9.

Categories