Affiliate Marketing
Forum Search


Reply
 
LinkBack Thread Tools Display Modes

  #1 (permalink)  
Old 20-02-06
ChrisM's Avatar
Registered User
 
Join Date: Jul 2004
Location: Sheffield
Posts: 383
Thanks: 1
Thanked 0 Times in 0 Posts
ChrisM is an unknown quantity at this point
  ASP question - Server.Execute to load an external URL?

Hi All,

Anyone able to help me out? I've got an ASP page (page A) being called (as opposed to being loaded - so no images etc are loaded, its just the ASP thats executed).

What i need to do is call a script on another server from this page (Page B), but i can't find a way to do it. Normally I'd put the URL to the script in IMG tags, but as the call to Page A doesnt result in any images being loaded, this doesnt work.

I've tried the Server.Execute command but this doesn't seem to work - presumably for security reasons IIS wont let me call an external URL.

Anyone able to help? I'm short enough on hair as it is!

Cheers

Chris
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 20-02-06
Registered User
 
Join Date: Apr 2004
Location: Leeds
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
sweeting is an unknown quantity at this point
  XMLHttp Call to another server

Hi,

Have you tried using the XMLHttp object to send a request to that page?

Response.Buffer = True
Dim objXMLHTTP, xml

Create an xmlhttp object:
Set xml = Server.CreateObject("Microsoft.XMLHTTP")
' Or, for version 3.0 of XMLHTTP, use:
' Set xml = Server.CreateObject("MSXML2.ServerXMLHTTP")

' Opens the connection to the remote server.
xml.Open "GET", "http://www.Whatever.com/pagetocall.asp", False

' Actually Sends the request and returns the data:
xml.Send


I think the latest/ most robust version is 6.0

Hope it helps,

Paul.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 20-02-06
accelerator's Avatar
Online shopping rocks!
 
Join Date: Nov 2004
Location: England
Posts: 1,314
Thanks: 8
Thanked 29 Times in 26 Posts
accelerator is an unknown quantity at this point
Just a suggestion, but why don't you make the script you are calling load a 1 pixel square image, and then from what you are saying, it should work.

Rgds

Accelerator
__________________
WebRef.eu - Web Development Resources for the Online Entrepreneur
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 20-02-06
ChrisM's Avatar
Registered User
 
Join Date: Jul 2004
Location: Sheffield
Posts: 383
Thanks: 1
Thanked 0 Times in 0 Posts
ChrisM is an unknown quantity at this point
You star Paul - exactly what I was after.

I had found a workaround using WinHTTP earlier but that was clumsy.

Thanks again!

Chris
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #5 (permalink)  
Old 20-02-06
ChrisM's Avatar
Registered User
 
Join Date: Jul 2004
Location: Sheffield
Posts: 383
Thanks: 1
Thanked 0 Times in 0 Posts
ChrisM is an unknown quantity at this point
Hi Accelerator - the problem is it won't load images - sorry if i was a bit vague!

Chris
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 21-02-06
CompareStore's Avatar
CompareStorePrices.co.uk
 
Join Date: Aug 2003
Location: Sussex
Posts: 566
Thanks: 0
Thanked 0 Times in 0 Posts
CompareStore is an unknown quantity at this point
  Set the timeouts

Remember to set the timeouts on the XMLHTTP request just in case the other server isn't responding.
For example if you are using XMLHTTP to retrieve some kind of advertising but you would still be able to display the page even if the ad wasn't returned then you can set the timeouts quite low (about 3 seconds (300) for each of the 4 parameters should do it). If you cannot continue to load your page without the returned data then you can set them much higher.
__________________
Chris Young

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
dumb question but... url redirect Shane The Affiliate Marketing Lounge 12 13-09-03 06:56 AM


Affiliate Marketing RSS Feeds - Contact Us - Affiliate Marketing - Archive - Privacy Statement - Top

Content Relevant URLs by vBSEO 3.2.0 RC7