Results 1 to 2 of 2
  1. #1
    Full Member
    Join Date
    January 18th, 2005
    Location
    UK
    Posts
    273
    I have a number of dynamic store pages on several of my sites, which are iframes that one embeds in ones own page.

    I have been trying to see if I could read them server side with PHP, so I have a bit more control of them.

    However my sample code is failing 400 Bad request.

    Does anyone know if this is possible ?

    If yes, then I will persevere now ,
    if not then it will go on my background pending further research list.

    Les

  2. #2
    Fear and Arrogance jrrl's Avatar
    Join Date
    January 18th, 2005
    Location
    Pittsburgh
    Posts
    485
    It's just an HTTP GET, so it should be possible.

    Your problem could be at the merchant end. They may require a referrer so they know it is embedded (to prevent exactly what you are doing). Or they may be screening based on the the user-agent. Try including either of those headers in your request to see if it helps.

    In general, anything retrievable by a browser is retrievable by PHP/Perl/Python. Sometimes you just have to get sneaky. The closer your program's request mimics a browser's request, the more likely you are to get past any problems.

    -John.
    There's a reason army's wear uniforms even though it makes them easier to spot. Sometimes that's what you want. Uniforms suggest organization, power, and numbers. These, in turn, inspire fear. And, as any good operative knows, there is no more effective weapon than fear.

    Hosting Comparison - HostScope - jrrl.com

  3. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. Need help with getting a PHP list to read my affiliate links
    By kreasor in forum Programming / Datafeeds / Tools
    Replies: 2
    Last Post: August 22nd, 2008, 12:04 PM
  2. Legitimate Use of Iframes
    By Cheesehead in forum ShareASale - SAS
    Replies: 6
    Last Post: August 19th, 2008, 10:48 PM
  3. not able to read orangelinks_mmddyyyy.xls thru php
    By vinod in forum Google Affiliate Network - GAN
    Replies: 2
    Last Post: August 2nd, 2008, 11:16 AM
  4. shoes.com and iframes
    By Roland in forum Commission Junction - CJ
    Replies: 15
    Last Post: October 18th, 2004, 06:40 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •