B4J Question When to Use SetContentType or SetHeader("Content-Type", ...) - mcqueccu    
Sep 25, 2019   
(1 reaction) was successful whiles using setContentType to set the header
But when using GET request to check the status of the transaction
setContentType keeps giving me an error. Meanwhile setHeader("Content... SetContentType and when is it right to use setHeader
Endpoint: POST
https://api.xxxxxx.com/v1/receive
Header... with api key
ok.GetRequest.SetContentType("application/json") 'set the header...
link: See the documentation of SetContentType: https://www.b4x.com/android/help/okhttp...
B4A Question HTTP SetContentType vs SetHeader("Content-Type", ... - JackKirk    
Jun 28, 2017I'm totally confused between these 2 - are there any hard and fast rules as to which to use when?...
link: You should only use SetContentType to set the content type....
B4i Question Something like job.GetRequest.SetContentType("application/json") - schimanski    
Jun 1, 2015Is there something like
job.GetRequest.SetContentType("application/json")
is b4i?
Greetings......
link: You can download it here: https://www.b4x.com/android/forum/threads/postmultipart-sendmultipartjob.5...
link: Thanks!!! I have 1.00 installed, but I can't find v1.01:(...
link: Yes. The exact same code should work (make sure to use iHttp v1.01)....
B4J Question [Server] How to set content-type in the response for specific file types? - avalle (first post)    
Mar 9, 2021   
(1 reaction) 14:40:00 GMT
< Last-Modified: Mon, 15 Feb 2021 15:16:03 GMT
< Content-Type: application/pkix-crl
< Accept-Ranges: bytes
< Content-Length: 1014
< Server: Jetty(9.4.z-SNAPSHOT)...
link: Yes....
link: Thanks Erel. I'm going to check this.
Is it right to apply it during the srvr initialization pha...
link: ("getMimeTypes", Null).RunMethod("addMimeMapping", Array("crl"...
B4A Code Snippet Set HTTP Request Header with OkHttpUtils2 - Erel    
Sep 17, 2018   
(12 reactions)   
tags: http after the current code execution completes.
Note that you can set any number of headers.
The content type header should be set with SetContentType.
Tags: http headers, httputils2, user agent...Description: The following code allows you to set the request headers before the request is sent....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...
B4i Question B4i send JSON 'j.GetRequest.SetContentType("application/json") problem - Tomas Petrus (first post)    
Aug 16, 2018Thanks that helped : )...
link: But in B4i it seems that this doesnt exist
Exact same code should work. Make sure that both iHttpUtils2 and iHttp libraries are refer...
link: response.
But in B4i it seems that this doesnt exist
j.GetRequest.SetContentType("application/json...
B4A Question SetContentType - marcel (first post)    
Dec 15, 2015Thanks! This is working!...
link: , "Bearer "&mAccessToken)
job.GetRequest.SetHeader("Content-Type", "application...
link: What data do you need to transport/post?...
link: The server requires to set the content type and I can also post information. But I am not sure how...
B4A Question problems with HttpJob , PostString , SetContentType , send json - Erel (first post)    
Jan 11, 2015Cookies are maintained automatically. If the session is based on cookies then it should work automat...
link: some one know how i create the session on b4c and maintain the session...
link: Hi , I think in the same way that you , but when this page come like a answer i had create a sessio...
link: Without seeing what you are doing it is hard to give congrete answers...
As i can see in the log yo...
B4i Question SetContentType in httpUtils2 - jaraiza (first post)    
Dec 10, 2014
job1.GetRequest.SetHeader("Content-Type", "application/soap+xml")
This did the trick, thanks Erel! :)...
link: .GetRequest.SetHeader("Content-Type", "application/soap+xml")
...
link: Hi,
I've noticed there's no SetContentType in this implementation of httpUtils2.
I've...
Other [new feature] b4xlib - a new type of library - Erel    
Nov 2, 2020   
(69 reactions)   
tags: b4xlib;libraries, b4x library, Erel compiled.
Starting with B4A (8.80), B4i (v5.50), B4J (v7.00) and B4R (v3.50), a new type of libraries is available - b4x libraries.
A b4x library is a simple zip file with:
- Code modules. All types...
Page: 1  
2  
3  
4  
5  
6  
7