Skip to content

Commit

Permalink
HTTP->HTTPS where applicable
Browse files Browse the repository at this point in the history
  • Loading branch information
smarek committed Jul 17, 2015
1 parent 769e809 commit 400537c
Show file tree
Hide file tree
Showing 71 changed files with 158 additions and 158 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Expand Up @@ -130,7 +130,7 @@ List of closed issues is here [https://github.com/loopj/android-async-http/issue
- Is returned for each call (`.post(...)`, `.get(...)`, `.head(...)`, `.put(...)`, etc..)
- Added BaseJsonHttpResponseHandler to simplify integration with Jackson JSON, Gson and other JSON parsing libraries
- Added Sample application to demonstrate functions and usage
- Using [http://httpbin.org/](http://httpbin.org/) to test methods
- Using [https://httpbin.org/](https://httpbin.org/) to test methods
- Enforcing INTERNET permission
- Support for Gradle buildscript
- Support for Travis CI (Continuous Integration) testing
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Expand Up @@ -22,7 +22,7 @@ Don't be discouraged if your pull request is rejected. This is not a deadline an
ISSUES
---------

![Read the ISSUES?](http://i.imgur.com/LPWyLe7.jpg "Read the ISSUES?")
![Read the ISSUES?](https://i.imgur.com/LPWyLe7.jpg "Read the ISSUES?")

The issues system is the place to report bugs and not for submitting patches or new functionality. As helpful as we would like to be, we cannot replace the developer and we certainly do not see what you're seeing. So when you come to report an issue, follow these simple rules:

Expand Down
4 changes: 2 additions & 2 deletions NOTICE.txt
@@ -1,6 +1,6 @@
Android Async Http Client library
Copyright (c) 2011-2015 James Smith <james@loopj.com>
http://loopj.com
https://loopj.com

This product includes software developed by
The Apache Software Foundation (http://www.apache.org/).
The Apache Software Foundation (https://www.apache.org/).
10 changes: 5 additions & 5 deletions README.md
Expand Up @@ -2,7 +2,7 @@ Asynchronous Http Client for Android
====================================
[![Build Status](https://travis-ci.org/loopj/android-async-http.png?branch=master)](https://travis-ci.org/loopj/android-async-http)

An asynchronous, callback-based Http client for Android built on top of Apache's [HttpClient](http://hc.apache.org/httpcomponents-client-ga/) libraries.
An asynchronous, callback-based Http client for Android built on top of Apache's [HttpClient](https://hc.apache.org/httpcomponents-client-ga/) libraries.

Changelog
---------
Expand All @@ -16,7 +16,7 @@ Javadoc

Latest Javadoc for 1.4.8 release are available here (also included in Maven repository):

http://loopj.com/android-async-http/doc/
https://loopj.com/android-async-http/doc/

Features
--------
Expand Down Expand Up @@ -48,9 +48,9 @@ You can now integrate this library in your project via Maven. There are availabl

**releases, maven central**

http://central.maven.org/maven2/com/loopj/android/android-async-http/
https://repo1.maven.org/maven2/com/loopj/android/android-async-http/
```
Maven URL: http://repo1.maven.org/maven2/
Maven URL: https://repo1.maven.org/maven2/
GroupId: com.loopj.android
ArtifactId: android-async-http
Version: 1.4.8
Expand All @@ -74,5 +74,5 @@ Documentation, Features and Examples
------------------------------------
Full details and documentation can be found on the project page here:

http://loopj.com/android-async-http/
https://loopj.com/android-async-http/

2 changes: 1 addition & 1 deletion gradle.properties
Expand Up @@ -8,7 +8,7 @@ POM_SCM_URL=https://github.com/loopj/android-async-http
POM_SCM_CONNECTION=scm:git@github.com:loopj/android-async-http.git
POM_SCM_DEV_CONNECTION=scm:git@github.com:loopj/android-async-http.git
POM_LICENCE_NAME=The Apache Software License, Version 2.0
POM_LICENCE_URL=http://www.apache.org/licenses/LICENSE-2.0.txt
POM_LICENCE_URL=https://www.apache.org/licenses/LICENSE-2.0.txt
POM_LICENCE_DIST=repo

POM_DEVELOPER_ID=jamessmith
Expand Down
@@ -1,13 +1,13 @@
/*
Android Asynchronous Http Client
Copyright (c) 2011 James Smith <james@loopj.com>
http://loopj.com
https://loopj.com
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
Expand Down Expand Up @@ -94,7 +94,7 @@
* ResponseHandlerInterface} instance. <p>&nbsp;</p> For example: <p>&nbsp;</p>
* <pre>
* AsyncHttpClient client = new AsyncHttpClient();
* client.get("http://www.google.com", new AsyncHttpResponseHandler() {
* client.get("https://www.google.com", new AsyncHttpResponseHandler() {
* &#064;Override
* public void onSuccess(int statusCode, Header[] headers, byte[] responseBody) {
* System.out.println(response);
Expand Down Expand Up @@ -502,7 +502,7 @@ public void setRedirectHandler(final RedirectHandler customRedirectHandler) {

/**
* Sets the User-Agent header to be sent with each request. By default, "Android Asynchronous
* Http Client/VERSION (http://loopj.com/android-async-http/)" is used.
* Http Client/VERSION (https://loopj.com/android-async-http/)" is used.
*
* @param userAgent the string to use in the User-Agent header.
*/
Expand Down
@@ -1,13 +1,13 @@
/*
Android Asynchronous Http Client
Copyright (c) 2011 James Smith <james@loopj.com>
http://loopj.com
https://loopj.com
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
Expand Down Expand Up @@ -185,7 +185,7 @@ private void makeRequestWithRetries() throws IOException {
} catch (NullPointerException e) {
// there's a bug in HttpClient 4.0.x that on some occasions causes
// DefaultRequestExecutor to throw an NPE, see
// http://code.google.com/p/android/issues/detail?id=5255
// https://code.google.com/p/android/issues/detail?id=5255
cause = new IOException("NPE in HttpClient: " + e.getMessage());
retry = retryHandler.retryRequest(cause, ++executionCount, context);
} catch (IOException e) {
Expand Down
@@ -1,13 +1,13 @@
/*
Android Asynchronous Http Client
Copyright (c) 2011 James Smith <james@loopj.com>
http://loopj.com
https://loopj.com
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
Expand Down Expand Up @@ -43,7 +43,7 @@
* <p>&nbsp;</p> For example: <p>&nbsp;</p>
* <pre>
* AsyncHttpClient client = new AsyncHttpClient();
* client.get("http://www.google.com", new AsyncHttpResponseHandler() {
* client.get("https://www.google.com", new AsyncHttpResponseHandler() {
* &#064;Override
* public void onStart() {
* // Initiated the request
Expand Down Expand Up @@ -242,7 +242,7 @@ public void setUsePoolThread(boolean pool) {
* Sets the charset for the response string. If not set, the default is UTF-8.
*
* @param charset to be used for the response string.
* @see <a href="http://docs.oracle.com/javase/7/docs/api/java/nio/charset/Charset.html">Charset</a>
* @see <a href="https://docs.oracle.com/javase/7/docs/api/java/nio/charset/Charset.html">Charset</a>
*/
public void setCharset(final String charset) {
this.responseCharset = charset;
Expand Down
6 changes: 3 additions & 3 deletions library/src/main/java/com/loopj/android/http/Base64.java
Expand Up @@ -5,7 +5,7 @@
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
Expand All @@ -20,7 +20,7 @@

/**
* Utilities for encoding and decoding the Base64 representation of binary data. See RFCs <a
* href="http://www.ietf.org/rfc/rfc2045.txt">2045</a> and <a href="http://www.ietf.org/rfc/rfc3548.txt">3548</a>.
* href="https://www.ietf.org/rfc/rfc2045.txt">2045</a> and <a href="https://www.ietf.org/rfc/rfc3548.txt">3548</a>.
*/
public class Base64 {
/**
Expand Down Expand Up @@ -520,7 +520,7 @@ public static byte[] encode(byte[] input, int offset, int len, int flags) {
/* package */ static class Encoder extends Coder {
/**
* Emit a new line every this many output tuples. Corresponds to a 76-character line length
* (the maximum allowable according to <a href="http://www.ietf.org/rfc/rfc2045.txt">RFC
* (the maximum allowable according to <a href="https://www.ietf.org/rfc/rfc2045.txt">RFC
* 2045</a>).
*/
public static final int LINE_GROUPS = 19;
Expand Down
Expand Up @@ -5,7 +5,7 @@
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
Expand Down
Expand Up @@ -5,7 +5,7 @@
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
Expand Down
@@ -1,13 +1,13 @@
/*
Android Asynchronous Http Client
Copyright (c) 2011 James Smith <james@loopj.com>
http://loopj.com
https://loopj.com
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
Expand Down Expand Up @@ -43,7 +43,7 @@ public BaseJsonHttpResponseHandler() {
/**
* Creates a new JsonHttpResponseHandler with given string encoding
*
* @param encoding result string encoding, see <a href="http://docs.oracle.com/javase/7/docs/api/java/nio/charset/Charset.html">Charset</a>
* @param encoding result string encoding, see <a href="https://docs.oracle.com/javase/7/docs/api/java/nio/charset/Charset.html">Charset</a>
*/
public BaseJsonHttpResponseHandler(String encoding) {
super(encoding);
Expand Down
@@ -1,13 +1,13 @@
/*
Android Asynchronous Http Client
Copyright (c) 2011 James Smith <james@loopj.com>
http://loopj.com
https://loopj.com
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
Expand Down Expand Up @@ -36,7 +36,7 @@
* <pre>
* AsyncHttpClient client = new AsyncHttpClient();
* String[] allowedTypes = new String[] { "image/png" };
* client.get("http://www.example.com/image.png", new BinaryHttpResponseHandler(allowedTypes) {
* client.get("https://www.example.com/image.png", new BinaryHttpResponseHandler(allowedTypes) {
* &#064;Override
* public void onSuccess(byte[] imageData) {
* // Successfully got a response
Expand Down
@@ -1,13 +1,13 @@
/*
Android Asynchronous Http Client
Copyright (c) 2011 James Smith <james@loopj.com>
http://loopj.com
https://loopj.com
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
Expand Down
@@ -1,13 +1,13 @@
/*
Android Asynchronous Http Client
Copyright (c) 2011 James Smith <james@loopj.com>
http://loopj.com
https://loopj.com
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
Expand Down
4 changes: 2 additions & 2 deletions library/src/main/java/com/loopj/android/http/HttpDelete.java
@@ -1,13 +1,13 @@
/*
Android Asynchronous Http Client
Copyright (c) 2011 James Smith <james@loopj.com>
http://loopj.com
https://loopj.com
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
Expand Down
4 changes: 2 additions & 2 deletions library/src/main/java/com/loopj/android/http/HttpGet.java
@@ -1,13 +1,13 @@
/*
Android Asynchronous Http Client
Copyright (c) 2011 James Smith <james@loopj.com>
http://loopj.com
https://loopj.com
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
Expand Down
4 changes: 2 additions & 2 deletions library/src/main/java/com/loopj/android/http/HttpPatch.java
@@ -1,13 +1,13 @@
/*
Android Asynchronous Http Client
Copyright (c) 2011 James Smith <james@loopj.com>
http://loopj.com
https://loopj.com
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
Expand Down
@@ -1,13 +1,13 @@
/*
Android Asynchronous Http Client
Copyright (c) 2011 James Smith <james@loopj.com>
http://loopj.com
https://loopj.com
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
Expand Down
@@ -1,13 +1,13 @@
/*
Android Asynchronous Http Client
Copyright (c) 2011 James Smith <james@loopj.com>
http://loopj.com
https://loopj.com
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
Expand Down Expand Up @@ -332,7 +332,7 @@ private void endMetaData(OutputStream os) throws IOException {
os.write('"');
}

// Curtosy of Simple-JSON: http://goo.gl/XoW8RF
// Curtosy of Simple-JSON: https://goo.gl/XoW8RF
// Changed a bit to suit our needs in this class.
static byte[] escape(String string) {
// If it's null, just return prematurely.
Expand Down Expand Up @@ -372,7 +372,7 @@ static byte[] escape(String string) {
sb.append("\\t");
break;
default:
// Reference: http://www.unicode.org/versions/Unicode5.1.0/
// Reference: https://www.unicode.org/versions/Unicode5.1.0/
if ((ch <= '\u001F') || (ch >= '\u007F' && ch <= '\u009F') || (ch >= '\u2000' && ch <= '\u20FF')) {
String intString = Integer.toHexString(ch);
sb.append("\\u");
Expand Down

0 comments on commit 400537c

Please sign in to comment.