Jump to content
UBot Underground

How To Set Content-Type: Application/json In Header?


Recommended Posts

Do you know how could I set the Content-Type parameter to for instance application/json when sending GET requests with socket container/socket navigate, etc. commands?

The problem is that the server I would like to communicate with, throws an error if Content-Type is not properly defined in the HTTP header.

I could not see this option at socket set header command, but is there any workaround  for this problem?

I would appreciate any suggestions, thanks!

Link to post
Share on other sites
  • 8 months later...

There has got to be a better solution to this.  Why isn't Content-Type supported by `socket set header`, or why can we not define the header name manually like with `set header`?

 

I can't think of any good reason setting socket headers by name isn't supported.

Edited by JohnnyFive
Link to post
Share on other sites

There has got to be a better solution to this.  Why isn't Content-Type supported by `socket set header`, or why can we not define the header name manually like with `set header`?

 

I can't think of any good reason setting socket headers by name isn't supported.

 

Like everything in development it's a question of resources, priorization and roadmap. :-)

A lot of stuff makes sense, but it's not in the product for different reasons. 

 

I'm a software developer myself and get lot's of emails with requests. Very often people think the feature they are asking for is very important, but honestly.. 80% of the time.. they are the only ones who are missing it.

 

So yes, I totally agree it would make sense. As a lot of other stuff would make sense to add to the product. 

 

Http Plugin is your best bet at the moment. You can add your idea to the ubot tracker as well, but I wouldn't expect an update very soon. 

The Ubot Socks feature isn't that famous in my oppinion.

 

Just my 2 cents.

 

Cheers

Dan

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...