alrighty, gotcha now. thanks for the clarification.
On Jan 3, 2:59 pm, m seleron <[email protected]> wrote: > Hi, > > I'm sorry for being not able to explain adequately. > > I tried. > > cfm?fuseaction=Reports.SetReport > ^ > I think that this sign is a cause in the development > where the Exception occurs. > > However, even if this sign is included > I do not think that production garish excetion is generated. > > The appearance is seen for a while. > If there is no workaround > > There might be a necessity for doing post to the Issue list. > > thanks. > > 2010/1/3 derkent <[email protected]>: > > > hey thanks, you seem to be right. > > > It seems a bug in the sdk, in production the problem "goes away". > > > I am not sure what you mean though when you say, when value of the url > > paramater dot is included. > > > Thanks again, > > > On Jan 1, 8:42 pm, seleronm <[email protected]> wrote: > >> Hi, > > >> I tried a little. > >> ( SDK 1.3.0) > > >> The condition that IOException is generated > >> when value of the URL parameter .(dot) is included. > > >> This is not generated in production. > > >> I think that the possibility of bug of development environment(SDK). > > >> thanks. > > >> >I have an url which is redirecting: > > >> >http://www.accessdata.fda.gov/Scripts/cder/DrugsatFDA/index.cfm?fusea... > >> >Reports.SetReport&rptname=1&reportSelectDate=12%2F2009&ta=Submits > > >> >org.apache.http.client.HttpClient can follow the redirect without any > >> >problem and get the content. > >> >However URLFetchService has problems following the redirects, > >> >java.io.IOException: Could not fetch URL. > > >> >Clearly the implementations are different, but I wonder how I can get > >> >the URLFetchService to also read in that url. Could this be a bug? If > >> >I ask HttpClient not to follow the redirect, it comes back with > >> >"temporarily moved", which I believe is HTTP Error 302. > > >> >Any help would be very kind. > > >> >The code using the URLFetchService: > > >> >URL url = new URL(urlStr); > >> >URLFetchService urlFetchService = > >> >URLFetchServiceFactory.getURLFetchService(); > >> >HTTPRequest httpRequest = new HTTPRequest(url, > >> >HTTPMethod.GET,followRedirects()); > >> >HTTPResponse response = urlFetchService.fetch(httpRequest); > > >> >The code using HTTPClient > > >> >String url = "http://www.accessdata.fda.gov/Scripts/cder/DrugsatFDA/ > >> >index.cfm? > >> >fuseaction=Reports.SetReport&rptname=1&reportSelectDate=12%2F2009&ta=Submits > >> >"; > >> >HttpClient httpclient = new DefaultHttpClient > >> >(); > >> >httpclient.getParams().setBooleanParameter > >> >( > >> > "http.protocol.handle-redirects", > >> >true); > >> >HttpGet httpGet = new HttpGet > >> >(url); > >> >ResponseHandler<String> responseHandler = new BasicResponseHandler > >> >(); > >> >String > >> >responseBody; > >> >try > >> >{ > >> >responseBody = httpclient.execute(httpGet, > >> >responseHandler); > >> > System.out.println > >> >(responseBody); > >> >} catch (ClientProtocolException e) > >> >{ > >> >e.printStackTrace > >> >(); > >> >} catch (IOException e) > >> >{ > >> >e.printStackTrace > >> >(); > >> >} > > >> >-- > > >> >You received this message because you are subscribed to the Google Groups > >> >"Google App Engine for Java" group. > >> >To post to this group, send email to > >> >[email protected]. > >> >To unsubscribe from this group, send email to google-appengine-java+ > >> >[email protected]. > >> >For more options, visit this group > >> >athttp://groups.google.com/group/google- > >> >appengine-java?hl=en. > > > -- > > > You received this message because you are subscribed to the Google Groups > > "Google App Engine for Java" group. > > To post to this group, send email to [email protected]. > > To unsubscribe from this group, send email to > > [email protected]. > > For more options, visit this group > > athttp://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
