chand3040 / pygooglevoice

Automatically exported from code.google.com/p/pygooglevoice
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

java.io.IOException: Answer did not contain rnr_se! <!DOCTYPE html> #65

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Voice   moVoice = new Voice("xxx@gmail.com", "xxxx");
2.moVoice.sendSMS("918970142247", "Hi");
3.To Verify the host and trust any certificate I have written below code        
                                                    public String 
subscribe(String dist,String userid,String password,
         String email,String name,String expirydate) throws Exception {
              String resp = "";
              String urlString="https://www.google.com/voice/";
              URL url;
              URLConnection urlConn;
              DataOutputStream printout;
              DataInputStream input;
              String str = "";
              int flag=1;

              try {
                  Properties sysProperties = System.getProperties();
            // change proxy settings if required and enable the below lines
                 sysProperties.put("proxyHost", "proxy.starhub.net.sg");
                 sysProperties.put("proxyPort", "8080");
                 sysProperties.put("proxySet",  "true");
      // Now you are telling the JRE to ignore the hostname
                     HostnameVerifier hv = new HostnameVerifier()
          {
                        String urlHostName = "googlegmail.com";
              public boolean verify(String urlHostName, SSLSession session)
              {
                  System.out.println("Warning: URL Host: " + urlHostName + " vs. "
                          + session.getPeerHost());
                  return true;
              }
          };

What is the expected output? What do you see instead?
I want to send sms to mobile number. 
java.io.IOException: Answer did not contain rnr_se! <!DOCTYPE html>

What version of the product are you using? On what operating system?
google-voice-java-1.8-java5.jar, json.jar, java6, win7

Please provide any additional information below.

please help me if i am doing any thing wrong.

Original issue reported on code.google.com by chandra....@gmail.com on 30 Apr 2012 at 11:26