Tips & Tricks »

I discussed a little about URL encoding in my recent post Facebook: Bug with URL encoding, although it seems like the bug still exists. In this post I will discuss “how to encode a given URL before accessing it using CURL or fsockopen”. The problem with URLs is that they might contain certain disallowed characters like spaces, according to RFC 3986. Our aim is to convert these invalid characters to their percentage encoded values in a given URL , so that we can access the URL using our regular HTTP request methods.
Posted by girish.r 1104 days ago (http://publicmind.in)
Discuss  | Bury | Tweet This | Tagged: encoding facebook php url
Add To 

Who Voted for this Story

  1. Avatar seo

Comments

No one has commented on this article yet.

Log in to comment or register here.