Need help with BAS httpClient Post Request
-
Hi everyone, just need help with bas httpclient .
I need httpclient header to look like this
POST /v3/user-profile HTTP/1.1
Host: xxxxx.xxxxx.com
Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) xxxxxx/1.0.63.617 Safari/537.36
Origin: https://profile.xxxxxxx.com
Authorization: Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Content-Type: image/jpeg
Accept: /
Referer: https://xxxxxxxxxx.com/index.html?param=xxxxxxxxx
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.8I am working with api and i need to Upload IMAGE using POST . How to achieve this . BAS httpclient has parameter and value field for POST DATA.
Using httprequester addon i am able to upload image successfully but unable to do with BAS.@support is it possible using httpclient?
-
-
@Fox thanks for the help . its working now
-
@support Still having this problem .Here is screenshot of request from BAS httpclient and fiddler . Problem is BAS isnt sending image file as body when using custom http method
Target server accepts only image/jpeg method for request.
How to sent image in body ?
-
Hey @andy231
I would love to help but I would need to record the site myself. Mind PMing me the website you're going up against?
Also, have you checked out the wiki? https://wiki.bablosoft.com/doku.php?id=how_to_make_post_requestAllister ☯
-
@Allister , thanks for your help . Seems that i missed important data in wiki even after reading many times . Now its resolved.