1.00
http
stringutils
anywheresoftware.b4a.samples.httputils2.httputils2service
HttpUtils2Service
HttpUtils2 version 2.01
Service module
process
java.lang.Class
android.permission.INTERNET
_tempfolder
String
process_globals
void
anywheresoftware.b4a.samples.httputils2.httpjob
HttpJob
HttpUtils2 version 2.01
Class module
process
IsInitialized
Tests whether the object has been initialized.
boolean
_class_globals
String
_complete
Called by the service when job completes
String
id
int
_download
Submits a HTTP GET request.
Consider using Download2 if the parameters should be escaped.
String
Link
String
_download2
Submits a HTTP GET request.
Encodes illegal parameter characters.
<code>Example:
job.Download2("http://www.example.com", _
Array As String("key1", "value1", "key2", "value2"))</code>
String
Link
String
Parameters
String[]
_getbitmap
Returns the response as a bitmap
anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper
_getinputstream
anywheresoftware.b4a.objects.streams.File.InputStreamWrapper
_getrequest
Called by the service to get the request
anywheresoftware.b4a.http.HttpClientWrapper.HttpUriRequestWrapper
_getstring
Returns the response as a string encoded with UTF8.
String
_getstring2
Returns the response as a string.
String
Encoding
String
_initialize
Initializes the Job.
Name - The job's name. Note that the name doesn't need to be unique.
TargetModule - The activity or service that will handle the JobDone event.
String
ba
anywheresoftware.b4a.BA
Name
String
TargetModule
Object
_postbytes
Sends a POST request with the given string as the post data
String
Link
String
Data
byte[]
_postfile
Sends a POST request with the given file as the post data.
This method doesn't work with assets files.
String
Link
String
Dir
String
FileName
String
_poststring
Sends a POST request with the given data as the post data.
String
Link
String
Text
String
_release
Should be called to free resources held by this job.
String
_jobname
String
_success
boolean
_username
String
_password
String
_errormessage
String
_tag
Object
Deprecated - Replaced by OkHttpUtils2
2.5