52 questions
1
vote
0
answers
85
views
Secure HTTP only cookie in response but not requests
My HTTP only cookie is being received by the frontend, but not passed in subsequent requests to the backend, therefore ruining my authentication process.
I want to add authentication to a page in my ...
0
votes
1
answer
739
views
API request gets error with Postman, different behavior with curl
Windows 11
I'm attempting what should be a pedestrian API request, but I'm getting an error in Postman (which might be a Postman bug).
The API call is possible because it runs on an Android app that ...
0
votes
1
answer
150
views
Restrict HTTP request based on HTTP Protocol in ASP.NET Core
I want to restrict the HTTP request based on the HTTP request protocol lower than 2.0 in ASP.NET Core.
Can we add any policy in the startup.cs file that will restrict the HTTP request based on the ...
0
votes
1
answer
637
views
Is trailers frame after data frame possible in HTTP/2?
Is it possible in HTTP/2 that a data frame is received with END_STREAM flag, and later a trailers frame will be received? In other words, will a frame with END_STREAM also indicate that no other frame ...
2
votes
1
answer
9k
views
increase HTTP request connection timeout in spring boot
I'm going to send an array of about 5 millions of records in json format in my spring boot app . is there any way to increase http request timeout in order to prevent from connection timeout?
0
votes
1
answer
431
views
Is the HTTP header `Set-Cookie: foobar` setting the name or the value of the cookie?
It's not a question about sense but about specification.
A HTTP cookie must be set like
Set-Cookie: <cookieValue>[; <attribute>][; <attribute>]
cookieValue is recommended to be set ...
1
vote
1
answer
59
views
Use of wrong HTTP verb while creating elasticsearch index
To create an index in the elasticsearch, we need to use the PUT verb, for example, the following command:
curl -X PUT "localhost:9200/test_index" -d '{"settings":{"...
4
votes
2
answers
3k
views
Is Content-Security-Policy header applicable only for text/html Content-Type?
From the OWASP's website
https://cheatsheetseries.owasp.org/cheatsheets/Content_Security_Policy_Cheat_Sheet.html:
Send a Content-Security-Policy HTTP response header from your web server.
Content-...
-1
votes
2
answers
573
views
Derive protocol from url
I do have a list of urls such as ["www.bol.com ","www.dopper.com"]format.
In order to be inputted on scrappy as start URLs I need to know the correct HTTP protocol.
For example:
[&...
0
votes
1
answer
189
views
Open a all http links from Windows in my UWP App
I am making a UWP app which opens all the http/https protocol links clicked in the Windows. In short it's acts same as a Default Browser.
I used the following to associate with http/https protocols
...
0
votes
1
answer
1k
views
protocol error when connecting to websocket in NodeJS
So I have successfully run this code from an open source directory in python but I am trying to convert it to JavaScript for my NodeJS app and am having some trouble with the following output when I ...
2
votes
1
answer
1k
views
How to upload file through HTTP protocol with C++?
I'm going to upload files with C++, to a Java spring boot web server.
I constructed the protocol looks like below (in plain text):
POST /gallery/multimedia/uploadvideo HTTP/1.1
Host: 192.168.0.133:...
1
vote
1
answer
102
views
Git: Confirm given commit is existent via HTTP(s) protocol
We use the git http(s) protocol (https://www.git-scm.com/docs/http-protocol; smart service) to get all branches from a repository on e.g. GitHub or BitBucket like this:
GET https://github.com/larshp/...
1
vote
1
answer
464
views
Four space characters in the beginning of a random name HTTP header
I've discovered a domain name (web site and API) which adds a header like this to each HTTP response:
XTVOpalL: Gtm; path=/; Max-Age=900
The header name looks random. Here are few other examples:
...
0
votes
2
answers
2k
views
Illegal assignment from System.JSONParser to JsonParser
In JsnoToApex class I try to GET JSON file from https://openweathermap.org/current. When I try to parse JSON.CreateParses I get these error: Illegal assignment from System.JSONParser to JsonParser
I ...
0
votes
1
answer
5k
views
customheaders in web.config file
How can i add entities/parameters into my asp.net mvc application. I want to allow cors to send ajax-requests into a database via asp.net webservice. Does anyone have experience fixing this?
<...
1
vote
1
answer
2k
views
can we change bind adress of http protocol of influx db
I'm trying to change [http] protocol's bind address,using which im able to send out the results but im not able to access iflux CLI.
I tried to change the bind address of [http] from 8086 to other ...
2
votes
1
answer
275
views
What is the format of HTTP 1.1 header values?
I read the rfc7230 section 3.2. After removing obsolete rules, the spec about header field is:
header-field = field-name ":" OWS field-value OWS
field-name = token
field-value = *field-...
1
vote
1
answer
708
views
How to redirect QWebEngineUrlRequestInfo to local files?
I have a simple Qt application that loads a page in a QWebEngineView. I would like to redirect all http requests with the word "static" in the url to local files. Using WebUrlRequestInterceptor I ...
0
votes
1
answer
3k
views
REST for soft delete and recovering soft deleted resources is limited
This is not much a technical question but more a reflexion about the subject.
REST have democtratized a good way of serving resources using HTTP protocols and let developper do the cleanest project ...
0
votes
0
answers
672
views
How to properly manage HTTP connection?
I am wondering how to properly manage the following HTTP response considering the file I am sending to the client contains other linked files representing future HTTP requests.
I know that I can ...
3
votes
1
answer
8k
views
Make a post request through a tcp connection in c#
I am asking this question primarily to learn. First I tried to make a regular post request and I got this error: C#: Handling WebClient "protocol violation". Then I tried to make a raw ...
0
votes
1
answer
711
views
Tor ControlPort Access - Security Concerns?
If I enable my Tor Control Port 9051 to allow all localhost connections to send signals and modify tor, what security risk do I run?
It is suggested I require password authentication for control ...
1
vote
0
answers
47
views
Does a description file exist for coap services?
Is there an equivalent of WADL or WSDL for COAP? APIs for Rest services like Restlet have functions like addQueryParameter for Request which can be used to make the request JSON after knowing the ...
-1
votes
1
answer
163
views
Need help about @Get @Post @Put @Delete in Restful webservice
I need your help and advice. This is my first project in jersey. I don't know much about this topic. I'm still learning. I created my school project. But I have some problems on the web service side. ...
2
votes
1
answer
63
views
Avoid HttpWebRequest GET and ProtocolViolationException
Is there anyway to prevent HttpWebRequest.GetRequestStream from throwing an exception when the method is GET? I know that HEAD and GET should not contain a body in valid HTTP, but some servers accept ...
1
vote
1
answer
3k
views
Android Volley - make POST with body and url parameters - getParams and getBody at the same time
I have simple question which method to call on POST and which method to call on GET.
This is my simple Class:
public class CustomStringRequest extends Request<CustomNetworkResponse> {
private ...
3
votes
2
answers
6k
views
How to use multiple method annotations on specific routes?
I know that there are discussions of what are the best practices for handling routes in Symfony2 (routing.yml vs annotations). Just let me mention, that I want to keep the way it is, using annotations....
1
vote
0
answers
690
views
Test Supported HTTP Methods
I'm trying to test supported methods in HTTP, essentially I'm creating httpwebrequest with verb to see if It's supported, how can I achieve this, how can I achieve that? Below is my code attempt.
My ...
0
votes
1
answer
160
views
Verifying that send data is in HTTP (1.0 and 1.1) protocol
I'm trying to write a server in python 2.7 which receives and verifies that the client uses HTTP protocol (either 1.1 or 1.0 but a support has to be given for both).
How can I verify that the ...
1
vote
2
answers
718
views
How to properly decode HTTP traffic
I'm looking at HTTP traffic, and seeing a POST request that is "application/x-www-form-urlencoded" with strange characters in it:
t=%d8%94%b2%bc+%cb%ae%c9%ab
Various URL decodes that I tried running ...
1
vote
0
answers
140
views
PHP-CGI pipe info
When I get in my server a HTTP request I get somthing like this:
GET /my/page/home.php?arg1=1&arg2=2 HTTP/1.1
Host: mydomainname.com
Connection: keep-alive
Cache-Control: max-age=0
Accept: text/...
1
vote
2
answers
713
views
YQL : Getting unsupported http protocol error
When i'm trying to invoke the YQL via cURL i'm getting the following error.
HTTP Version Not Supported
Description: The web server "engine1.yql.vip.bf1.yahoo.com" is using an unsupported version of ...
5
votes
1
answer
14k
views
Python: How to download file using range of bytes?
I want to download file in multi thread mode and I have following code here:
#!/usr/bin/env python
import httplib
def main():
url_opt = '/film/0d46e21795209bc18e9530133226cfc3/7f_Naruto....
1
vote
0
answers
979
views
Setting the SERVER_PROTOCOL to HTTP/1.1 in centOS
I want to set the http SERVER_PROTOCOL as HTTP/1.1 in my CentOS system. The system is currently configured with Apache/2.2.15 and PHP/5.4.10. But the PHP info file in my server shows as:
...
0
votes
1
answer
111
views
AJAX Request and Simple Request
Should a ajax Request obey the rule:
one request , one response;
What is the essential differences between ajax request and simple request
for HTTP Protocol?
2
votes
1
answer
841
views
send login details via POST from android
I am trying to send user email address and password from my android app to the db to login via POST.
On the server side, I get my data like this :
$email = $_POST['email'];
$password = clean($...
-4
votes
2
answers
629
views
Is it possible to connect a computer using HTTP Protocol? [closed]
Let us see I have a
GSM Modem
connected to a computer that having a valid Static IP Address. Now as a PHP Developer i want to connect to that computer and have to listen the COM1 port. This is what ...
1
vote
1
answer
686
views
Netty http pipelining approach validation
I have implemented a channel handler for handling http pipelining. My code is at github: https://github.com/huntc/netty-http-pipelining
My question is around the approach that I have taken and ...
0
votes
2
answers
547
views
Does 302 redirect supports method forwarding?
We have a shortcut service in my company which basically provides redirection of short aliases to full URLs. The server runs a simple http redirection (302) service which uses the Host request header ...
2
votes
2
answers
3k
views
WebDav Protocol VS HTTP Protocol
In what way WebDAV protocol is better than HTTP protocol in terms of upload.
Is there comparison between Socket Upload protocol and WebDav Upload protocol?
7
votes
2
answers
14k
views
How do I create a websockets server in PHP?
I have been searching the internet for about two days now, trying to understand how web sockets work, I am relatively new at Javascript and PHP, seeing as I started about two or three months ago.
I ...
0
votes
2
answers
1k
views
NSMutableURLRequest http status code 413
I have a web service. I use it to accept a base 64 string representation of a small (thumbnail size) image. This web service works awesome when using it with Fiddler and manually posting the request....
4
votes
3
answers
10k
views
Implementing an HTTP proxy
I would like to implement and HTTP proxy server to get a deeper understanding of some of the finer points of the protocol and learn some socket programming along the way but I don't want to implement ...
1
vote
1
answer
3k
views
Android how to reuse Socket?
how to reuse TCP Socket connection(possible setReuseAddress(true), but not work for me) for download multiple files from Server(Apache, HTTPD) in on connection without disconnect(and connect again).
...
1
vote
1
answer
836
views
Android Socket download multiple files fired?
I want to download multiple images from server. I open socket and download first image and when I want download second image in this socket, download not proceed, socket are closed. My code below...
...
1
vote
2
answers
3k
views
How to avoid file:// protocol and show images using http://
It seems we cannot show images on Google Chrome using file:// protocol.
I think would be nice to have a way to load the file on a remote network such as file://my-network-computer/my-folder/my-file....
5
votes
3
answers
2k
views
HTTP status code for "More user input please?"
I am designing a RESTful API and am using the usual HTTP status codes like 200, 404, 500, etc.
Given the situation where occasionally the API will require additional data. When this event arises it ...
75
votes
3
answers
58k
views
How can I know if the request to the servlet was executed using HTTP or HTTPS?
I wrote a servlet in Java and I would like to know if the request to that servlet was executed using HTTP or HTTPS.
I thought I can use request.getProtocol() but it returns HTTP/1.1 on both methods.
...
1
vote
1
answer
639
views
HTTP client acting as a pseudo-server
Let's say I am going to deploy a server application that's likely to be placed behind a NAT/firewall and I don't want to ask users to tweak their NAT port mapping. In other words, connections to the ...