草庐IT

tbl_posts

全部标签

ios - POST 请求返回不需要的缓存结果 (AFNetworking)

我正在使用AFNetworking从传递用户用户名和密码的共享“身份验证器”类发出POST请求。这是我发出的POST请求:NSURL*url=[NSURLURLWithString:@"https://www..."];AFHTTPClient*httpClient=[[AFHTTPClientalloc]initWithBaseURL:url];//paramsNSDictionary*dict=@{@"loginName":username,@"password":password,@"serviceName":@"...",@"serviceURL":@"...",@"actio

带有 AFNetworking 的 iOS POST 请求

我正在使用AFNetworking向Web服务发出POST请求这是我需要发送的JSON-{“LinkedTo”:{“IndividualStakeholder”:“”,“GroupedStakeholder”:“”,“LandParcelStakeholder”:“”,“Communications”:“”,“Team”:“”,“Issue”:“”,“Event”:“”}“userId”:170,“projectId”:12}这是我正在使用的代码-NSString*jsonData=[selfJSONString:jsonData1];此时NSString*jsonData中的值为{\

ios - AFNetworking POST 作为 GET 发送

如果这是正常的,请原谅,但我正在尝试使用AFNetworking从iOS发送一个发布请求。使用Charles监控请求,我看到发送了一个GET:GET/api/updateTeamAlert/HTTP/1.1Host:www.******r.coAccept-Encoding:gzip,deflateAccept:*/*Accept-Language:en;q=1,fr;q=0.9,de;q=0.8,ja;q=0.7,nl;q=0.6,it;q=0.5Connection:keep-aliveUser-Agent:******Alerts/1.0(iPhoneSimulator;iOS6

php - 将此 .php 转换为 ObjC 可运行的 NSURLSession POST 请求?

基本上,我正在尝试登录此websitecalledMistar.我可以使用php来完成:因此php(当您运行它时)可以正常工作。您使用Pin(20005012)和密码(wildcats)进行身份验证并返回一个页面,其中包含类似{1,UserAuthenticated}现在我要做的是从iPhone应用程序(所以ObjC)登录网站,可能使用NSURLSession或其他东西。这是我目前所拥有的,但它一直给我一个登录页面错误:-(void)loginToMistar{//CreatePOSTrequestNSMutableURLRequest*request=[[NSMutableURLRe

objective-c - RestKit - POST 响应对象映射

我的RESTful网络服务(Rails)上有方法“getBuses”。该方法需要返回JSON格式的总线列表。但是,当我发送对“/getBuses.json”的请求时,我需要发送params=[NSDictionarydictionaryWithObjectsAndKeys:@"2011-08-16",@"datum",@"TRUE",@"fromSerbia",nil];我发布参数是因为我需要过滤响应(仅针对特定在特定日期游览)。然后,我期待这样的回应:{"buses":[{"bus_number":"1","created_at":"2011-08-15T23:07:52Z","id

java - 在 Spring Boot 中增加 HTTP Post maxPostSize

我有一个相当简单的SpringBootWeb应用程序,我有一个带有enctype="multipart/form-data"的表单的HTML页面。我收到此错误:Themulti-partrequestcontainedparameterdata(excludinguploadedfiles)thatexceededthelimitformaxPostSizesetontheassociatedconnector.我正在使用SpringBoot的默认嵌入式tomcat服务器。显然,默认的maxPostSize值是2兆字节。有没有办法编辑这个值?通过application.properti

java - 在 Spring Boot 中增加 HTTP Post maxPostSize

我有一个相当简单的SpringBootWeb应用程序,我有一个带有enctype="multipart/form-data"的表单的HTML页面。我收到此错误:Themulti-partrequestcontainedparameterdata(excludinguploadedfiles)thatexceededthelimitformaxPostSizesetontheassociatedconnector.我正在使用SpringBoot的默认嵌入式tomcat服务器。显然,默认的maxPostSize值是2兆字节。有没有办法编辑这个值?通过application.properti

python-2.7 - Python 请求 Post 请求在使用 Livy 连接到 Kerberized Hadoop 集群时失败

我正在尝试通过Livy连接到kerberizedhadoop集群以执行Spark代码。我发出的请求调用如下。kerberos_auth=HTTPKerberosAuth(mutual_authentication=REQUIRED,force_preemptive=True)r=requests.post(host+'/sessions',data=json.dumps(data),headers=headers,auth=kerberos_auth)此调用失败并出现以下错误GSSException:Novalidcredentialsprovided(Mechanismlevel:F

hadoop - oozie REST api POST 新配置单元作业获取 "This request requires HTTP authentication."

我正在使用RESTapi将HIVE作业提交给oozie。我尝试使用postman和curl发送请求,但收到一条错误消息:“此请求需要HTTP身份验证。”我尝试在我的Clouderaquickstart和Hortonworks上运行它,但遇到了同样的错误。config.xml是:fs.default.namehdfs://localhost:8020mapred.job.trackerlocalhost:8021user.nameclouderaoozie.hive.scriptselect*fromtest;oozie.libpathhdfs://localhost:8020/user

rest - 如何执行 Netflix-Exhibitor POST REST API?

我需要Zookeeper的RESTAPI,我指的是https://github.com/Netflix/exhibitor/wiki/REST-Configuration但我无法执行POSTAPI。我在哪里可以使用exhibitor获取示例curl请求。或者有人可以发布示例来设置配置。curl查询如下,它需要配置作为参数。curl-i-XPOST"http://hostname:8080/exhibitor/v1/config/set那么以任何配置作为参数的最终curl请求将如何。所以基本上我无法添加参数。 最佳答案 我想通了。:)