B4A Code Snippet Set HTTP Request Header with OkHttpUtils2 - Erel    Sep 17, 2018   (11 reactions)   tags: http Description: The following code allows you to set the request headers before the request is sent. This is useful for example with sites that block requests without a User-Agent header. This code....SetHeader("User-Agent", "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0") It is a bit confusing as it seems that the header is set after the request was sent... after the current code execution completes. Note that you can set any number of headers... Share My Creation B4Rh2xml UI Simple tool to create B4R xml file from B4R header file - max123    Nov 17, 2023   (6 reactions) from B4R header files. Since this tool is a command line, I decided to create a simple GUI version... you are prompted to choose the header file on your hard drive, select it and then if all goes well, the tool create the xml file in the same directory of the header file. If you see errors, then your header... - Utility to create B4R xml file from B4R header file." MainForm.Show End Sub Sub... fileChooser.SetExtensionFilter("B4R Header file", Array("*.h")) Dim... B4A Library [B4X] CLVHeader - Add a nice animated header to xCustomListView - Erel    Apr 30, 2019   (31 reactions)   tags: xcutomlist header 333276356 This is a replacement to the modified CLV class (https://www.b4x.com/android/forum/threads/b4x-xui-customlistview-with-animated-header.84245/#post-659768). The two attached projects demonstrate how to use it. Note that pnlTop is positioned above CLV (top position is the same). You need to handle the ScrollChanged event and delegate it to CLVHeader: Sub CustomListView1_ScrollChanged...): https://www.b4x.com/android/forum/threads/header-with-parallax-effect-for-ulv.97820/ The class... B4A Tutorial [B4X] [XUI] CustomListView with animated header - Erel    Apr 30, 2019   (19 reactions)   tags: listview, Clv /b4x-clvheader-add-a-nice-animated-header-to-xcustomlistview.105343/ 59958 252355084 This is a slightly modified version of xCustomListView. It adds a header. The header becomes shorter when the user scrolls down. An event is raised, which allows you to adjust the header's layout based on the current height. For example: Sub CustomListView1_UpdateHeaderSize (Height As Int) lblHeader.SetLayoutAnimated(0, 0, 0, pnlTop.Width, pnlTop.Height) lblHeader.TextSize = 20 + 20 * (Height... B4J Question [ABMaterial] how to create a fixed header - Cableguy    Nov 7, 2016   (1 reaction) Hi guys... I'm trying to conceptualize my first ABMaterial webapp, which will, for simplicity and learning purposes, is to be a single page, in which I plan to have a Fixed header with an image, a title and 3 icons (like a topnavbar, except the later does not accept an image unless I set a nevigation menu, which I do not want to), a ChronologyList component, and a fixed Footer with perhaps... on the first item, the header... ABM does not have a "Header" component with the specs to suite my... B4J Code Snippet [server] list all request headers in a handler class - Erel    Oct 4, 2020   (5 reactions) Dim jo As JavaObject = req Dim collections As JavaObject collections.InitializeStatic("java.util.Collections") Dim headers As List = collections.RunMethod("list", Array(jo.RunMethodJO("getHeaderNames", Null))) For Each h As String In headers Log(h & ": " & req.GetHeader(h)) Next ... B4J Question TableView Header color - imbault    Feb 27, 2018 Hi, Does anyone knows how to setup TableView header color ? (TextColor and BackGround) I'd like this : 65011 Thanks a lot... B4A Question [SOLVED] B4XTable - "Custom layouts" of headers - LucaMs    Dec 21, 2023 I've been literally fighting š¤¬ with the column headers of a B4XTable for many hours (not... if it will help me, mainly because I ADD views, to the headers and by loading a layout.
What I do... B4A Code Snippet ServletRequest all Header and Parameters (httpServer) - Star-Dust    Jan 14, 2021   (3 reactions) I arose from the need to know all the headers of a GET request. When HttServer raises... for reading Headers, GetHeader. How to get a complete list of Headers? HttpServer1.Initialize... req As JavaObject = ServletRequestWrapper.GetField("req") Dim headerNames As JavaObject = req.RunMethod("getHeaderNames",Null) ' List of Header Do While headerNames.RunMethod("hasMoreElements",Null) Log(headerNames.RunMethod... B4A Question [solved] okhttp not removing headers in a POST request - DonManfred    Jun 28, 2015 "files/get_thumbnail","") job.GetRequest.SetHeader("Authorization", "Bearer "&mAccessToken) job.GetRequest.SetHeader("Dropbox-API-Arg"...) job.GetRequest.RemoveHeaders("Content-Type") End Sub I would expect to get the Content-Type header removed. But i get an error told from Dropbox Error in call to API function "files/get_thumbnail": You provided a non-empty HTTP "Content-Type" header ("application/x... Page: 1   2   3   4   5   6   7   |