Если бы это не возможно с HttpURLConnection, я предложил бы использовать библиотека httpclient от Apache.
А быстрый пример:
HttpClient client = new HttpClient();
client.getState().setCredentials(AuthScope.ANY, new UsernamePasswordCredentials("test","test"));
GetMethod getMethod = new GetMethod("http://www.example.com/mylogin");
client.executeMethod(getMethod);
System.out.println(getMethod.getResponseBodyAsString());
The int32 Тип
не является стандартным для C - стандартный эквивалент #include
и использование int32_t
.
Однако в качестве системы POSIX в Ubuntu plain int
является (как минимум) 32-битным, так что вы можете просто использовать его.
Size of 'int' depends on the compiler you use. For same target architecture different compilers can have different sizes for 'int'. It depends on how they are utilizing the target features. For example, Turbo C running on windows has 'int' size as 2 bytes (its a DOS executable). While Visual C gives the size of 'int' as 32 (win32 executable).
In general, size of 'int' is determined by the size of word as per the target architecture. Size of word is reflected by 1. Processing size of arithmetic operations. 2. Size of general purpose registers. 3. Размер адреса, используемого для обозначения местоположения.
Однако в вашем случае вы ошибочно используете ключевое слово int32 для типа данных. Проверьте целевой компьютер и исправьте используемое ключевое слово соответствующим образом.