Hey all, I'm trying to get a json response back from a web page written in php. I've got the php code working properly, returning exactly the response I need (I'll show you how I verified that). But I'm getting an error_code: 1919 from http_get and _fetch, with the error text: Timed out reading headers: Socket timeout reading data. Some data was available, but the read was incomplete within the timeout intervae Which comes back immediately (even though _get has a timeout of 8000ms and _fetch 45000ms)
This is my code
url+parameters is
This url, when pasted in my browser, correctly returns the JSON I need. So I am positive that my PHP code works correctly. The problem is in alpha.
So again, when http_get or http_fetch run, they return back
This is my code
Code:
'get all the variables dim parameters as c = "?" parameters = parameters + "summary=" + e.dataSubmitted.summary + "&" parameters = parameters + "start=" + e.dataSubmitted.start + "&" parameters = parameters + "end=" + e.dataSubmitted.end + "&" parameters = parameters + "description=" + e.dataSubmitted.description + "&" parameters = parameters + "location=" + e.dataSubmitted.location + "&" parameters = parameters + "access_token=" + g_getAccessToken() + "&" parameters = parameters + "calendarId=" + g_getCalendarId(session.territory) if session.regionnum == 3 then parameters = parameters + "¢ral=1" end if 'pass them off to php 'FOR FETCH dim fetch as p fetch.host = "localhost" fetch.port = 8080 fetch.page = "postEvent.php" fetch.query_string = parameters dim response as p = http_fetch(fetch) 'FOR GET dim url as c = "http://localhost/postEvent.php" 'dim response as p = http_get(url+parameters,"",8080) '?response.body
Code:
http://localhost:8080/postEvent.php?summary=Brace Place&start=04/02/2012 09:00 am&end=04/02/2012 09:00 am&description=Telemarketer: Kyle McNallySales Rep: Angie Alvarez-- Prospect Information --Prospect ID: 934326695Prospect Name: Brace PlaceContact Name: Geri LeeverPhone: 813-988-9136&location=9806 N 56th St , Tampa, FL 33617&access_token=ya29.AHES6ZSl7EixdsMy9xPm3c-TqIKM6zw59vEjK-gv9hdJbwDeBplcLb8&calendarId=jktpa.com_ka3pbomnkemtdbm17ot9j5dc1o@group.calendar.google.com
So again, when http_get or http_fetch run, they return back
Code:
response.{ body=, error_text=Timed out reading headers: Socket timeout reading data. Some data was available, but the read was incomplete within the timeout interval., error_code=1919, headers=, parsed_headers= }
Comment