davelt99 Member Licensed User Longtime User Jun 15, 2015 #1 Using httpUtils2, I'm attempting to communicate with google maps and also their translation API. Posting to google maps with: <code> sURL=''http://maps.google.com/maps/api/geocode/json?address=" & sAddr & "&sensor=false" Job1.Initialize("Job1",Me) Job1.PostString(sURL,"") </code> works perfectly. However when posting to google for a translation: <code> sURL="http://www.googleapis.com/language/translate/v2?key=" & sMyKey & _ "&source=es&target=en&q=" & sText Job1.Initialize("Job1",Me) Job1.PostString(sURL,"") </code> the Job returns with an error message of "Not Found". Both URLs work within a browser, but I can't resolve why one works and the other doesn't. Any help would be greatly appreciated. Thanks in advance,
Using httpUtils2, I'm attempting to communicate with google maps and also their translation API. Posting to google maps with: <code> sURL=''http://maps.google.com/maps/api/geocode/json?address=" & sAddr & "&sensor=false" Job1.Initialize("Job1",Me) Job1.PostString(sURL,"") </code> works perfectly. However when posting to google for a translation: <code> sURL="http://www.googleapis.com/language/translate/v2?key=" & sMyKey & _ "&source=es&target=en&q=" & sText Job1.Initialize("Job1",Me) Job1.PostString(sURL,"") </code> the Job returns with an error message of "Not Found". Both URLs work within a browser, but I can't resolve why one works and the other doesn't. Any help would be greatly appreciated. Thanks in advance,
DonManfred Expert Licensed User Longtime User Jun 15, 2015 #2 have you tried to use DOWNLOAD instead of poststring? Upvote 0
davelt99 Member Licensed User Longtime User Jun 15, 2015 #3 DonManfred said: have you tried to use DOWNLOAD instead of poststring? Click to expand... Thanks DonManfred. That worked perfectly !!! Upvote 0
DonManfred said: have you tried to use DOWNLOAD instead of poststring? Click to expand... Thanks DonManfred. That worked perfectly !!!
eps Expert Licensed User Longtime User Sep 16, 2016 #4 I know this is old, but this change just worked for me - but why??? I've had code which has worked for a LONG time and then suddenly one Poststring request refused to work but another was fine.. I'm suspecting some kind of 'agent' thing - as I couldn't see the same page source information I was interrogating as my Desktop browsers.. Somehow it was being sent to a different page source. Upvote 0
I know this is old, but this change just worked for me - but why??? I've had code which has worked for a LONG time and then suddenly one Poststring request refused to work but another was fine.. I'm suspecting some kind of 'agent' thing - as I couldn't see the same page source information I was interrogating as my Desktop browsers.. Somehow it was being sent to a different page source.
eps Expert Licensed User Longtime User Sep 17, 2016 #5 Actually the above isn't quite true - the feed has changed... curse them! It is 'sort of' switched off sometimes - it responds to Desktop browser requests all the time as I expect but the mobile ones seem to be a bit flakey... Very odd! Upvote 0
Actually the above isn't quite true - the feed has changed... curse them! It is 'sort of' switched off sometimes - it responds to Desktop browser requests all the time as I expect but the mobile ones seem to be a bit flakey... Very odd!