Join Free
+ Reply to Thread
Results 1 to 4 of 4
  1. #1

    Proper url encoding

    When using the links api, there are two url parameters that must be passed in.

    1) The location (your web page): location

    2) The destination url (merchant page): url

    Both of these need to be url encoded in order for your links to work properly. We launched a new invalid clicks report today that shows you clicks that resulted in an error instead of going to the merchant.

    https://prosperent.com/account/reports/invalidclicks

    As we reviewed these, we noticed that most of them were simply people not properly url encoding their links.

    The following url does not work:

    PHP Code:
    prosperent.com/click/api/linkaffiliator/apikey/2faab4bcbd4ed51fd1706a7ee940bfe0/location/http://www.highaltitudeimports.com/url/http://www.6pm.com/nike-zoom-pegasus-31-black-white 
    The location, and url parameters aren't encoded, so the link breaks. It should look like this:

    PHP Code:
    http://prosperent.com/click/api/linkaffiliator/apikey/2faab4bcbd4ed51fd1706a7ee940bfe0/location/http%3A%2F%2Fwww.highaltitudeimports.com/url/http%3A%2F%2Fwww.6pm.com%2Fnike-zoom-pegasus-31-black-white 
    Now the url works properly.

  2. #2
    We will be rolling out an update shortly to try to detect and correct this issue on the fly from our side.

  3. #3
    We just pushed out an update that should resolve most of the url encoding issues we saw with people using the links api.

  4. #4
    Based on the url you are setting to the url or location param, it is still impossible for our code to detect non-urlencoded values with a 100% accuracy. That being said, I would go out on a limb and say it could detect with 99% accuracy currently. If you want that 100%, then you will have to urlencode your params and urlencode them properly. If you have questions or would like us to check your urls to see if they are urlencoded properly, let us know. We would be more than happy to review them for you.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
coupons | coupons and deals